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
What is FIFO?
How can I write a function analogous to scanf?
What are the data types present in c?
Explain what is the benefit of using enum to declare a constant?
What is malloc calloc and realloc in c?
What is pointer & why it is used?
How to create struct variables?
What is the heap?
Process by which one bit pattern in to another by bit wise operation is?
What is the difference between functions abs() and fabs()?
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
Who developed c language and when?
What is the auto keyword good for?
What is the difference between ++a and a++?
What do you mean by dynamic memory allocation in c? What functions are used?