Home » C Programming » Library Functions

What will be the output of the program? #include<stdio.h> #include<string.h> int main() { char dest[] = {97, 97, 0}; char src[] = "aaa"; int i; if((i = memcmp(dest, src, 2))==0) printf("Got it"); else printf("Missed"); return 0; }

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!