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
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
What is #error and use of it?
When we use void main and int main?
What are the 3 types of structures?
What is ambagious result in C? explain with an example.
Are c and c++ the same?
Can you define which header file to include at compile time?
Write the control statements in C language
What are the different types of linkage exist in c?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
What are pointers? What are different types of pointers?
Here is a neat trick for checking whether two strings are equal
What is derived datatype in c?
What does struct node * mean?
How to create struct variables?