1.

What will be the output of the program?_x000D_ #include_x000D_ #include_x000D_ _x000D_ int main()_x000D_ {_x000D_ char dest[] = {97, 97, 0};_x000D_ char src[] = "aaa";_x000D_ int i;_x000D_ if((i = memcmp(dest, src, 2))==0)_x000D_ printf("Got it");_x000D_ else_x000D_ printf("Missed");_x000D_ return 0;_x000D_ }

A. Missed
B. Got it
C. Error in memcmp statement
D. None of above
Answer» C. Error in memcmp statement


Discussion

No Comment Found