11. Look at the Code:
#include<string.h>
void main()
{
char s1[]="abcd";
char s2[10];
char s3[]="efgh";
int i;
clrscr();
i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd"));
printf("%d",i);
}
What will be the output?
A)No output B) A Non Integer C)0 D) Garbage
Answer Posted / mohan
answer would be B) a non integer b/c first strcat returns
"abcdefg" and second strcat returns "efghabcd" when compared
these two strings the output is non interger value
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
Why is sprintf unsafe?
What are header files in c programming?
How do you define CONSTANT in C?
What is the right type to use for boolean values in c? Is there a standard type?
What is the difference between NULL and NUL?
what do u mean by Direct access files? then can u explain about Direct Access Files?
How do you determine the length of a string value that was stored in a variable?
What are the advantages of the functions?
What is string length in c?
What is gets() function?
What are the types of type qualifiers in c?
What is use of integral promotions in c?
Explain how can I convert a number to a string?
Differentiate call by value and call by reference?
Write program to remove duplicate in an array?