void find_and_replace (char *A, char *oldc, char *newc) {
for (int i=0; i<5; i++)
for (int j=0; j<3; j++)
if (A[i] == oldc[j]) A[i] = newc[j];
}Related Programming & Data Structures PYQs
The preorder traversal sequence of a binary search tree is 30, 20, 10, 15, 25, 23, 39, 35, 42. Which one of the following is the p…
The preorder traversal sequence of a binary search tree is 30, 20, 10, 15, 25, 23, 39, 35, 42. Which one of the following is the p…
Which one of the following is the tightest upper bound that represents the time complexity of inserting an object into a binary se…
Match the problem domains in GROUP I with the solution technologies in GROUP II. | GROUP I | GROUP II | |---|---| | (P) Service o…
The figure represents access graphs of two modules M1 and M2. The filled circles represent methods and the unfilled circles repres…
What is the return value of f(p,p), if p is initialized to 5 before the call? The first parameter is passed by reference, whereas …
Free account benefits
Turn practice into measurable progress
Public PYQs and reference pages stay free. Sign in when you want GATEverse to remember what you studied and guide what to practise next.