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


Please Help Members By Posting Answers For Below Questions

What is FIFO?

661


How can I write a function analogous to scanf?

642


What are the data types present in c?

617


Explain what is the benefit of using enum to declare a constant?

576


What is malloc calloc and realloc in c?

650






What is pointer & why it is used?

596


How to create struct variables?

577


What is the heap?

675


Process by which one bit pattern in to another by bit wise operation is?

608


What is the difference between functions abs() and fabs()?

636


In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none

701


Who developed c language and when?

571


What is the auto keyword good for?

612


What is the difference between ++a and a++?

679


What do you mean by dynamic memory allocation in c? What functions are used?

638