1.

The procedure given below is required to find and replace certain characters inside an input character string supplied in array A. The characters to be replaced are supplied in array oldc, while their respective replacement characters are supplied in array newc. Array A has a fixed length of five characters, while arrays oldc and newc contain three characters each. However, the procedure is flawed.void find_and_replace (char *A, char *oldc, char *newc) {for (int i=0; i

A. None
B. 2 only
C. 3 and 4 only
D. 4 only
Answer» D. 4 only


Discussion

No Comment Found