What will be the output of the following C code?
char str1[15]; char str2[15]; int mat; strcpy(str1, "abcdef"); strcpy(str2, "ABCDEF"); mat= strncmp(str1, str2, 4); if(mat< 0) printf("str1 is not greater than str2"); else if(mat> 0) printf("str2 is is not greater than str1"); else printf("both are equal");
Select one:
a. error in given code
b. str1 is not greater than str2
c. both are equal
d. str2 is not greater than str1
Answers
Answered by
1
Answer:
à) error in given code
ook thnak you plz follow me and give heart
Answered by
0
Answer:
hiiiiiiii,. hoow r u???
Similar questions
India Languages,
3 months ago
Social Sciences,
3 months ago
Science,
6 months ago
Geography,
11 months ago
English,
11 months ago