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 are the 4 types of organizational structures?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
Explain what is the benefit of using const for declaring constants?
what is the height of tree if leaf node is at level 3. please explain
Can include files be nested?
How can a program be made to print the line number where an error occurs?
What is bash c?
What is a nested formula?
Explain the difference between getch() and getche() in c?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
Should I learn data structures in c or python?
What is sizeof in c?
What are type modifiers in c?
How many types of errors are there in c language? Explain
Why do we need functions in c?