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 / santhoo035
if u write the write the code as i=strcmp(strcat(s3,ctrcpy
(s2,s1)),strcat(s3,"abcd")); then it will print 0
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
What is the use of function overloading in C?
What are the advantage of c language?
When should the const modifier be used?
How will you delete a node in DLL?
Is a house a shell structure?
What are the uses of null pointers?
When c language was developed?
What oops means?
What is null pointer in c?
What is pivot in c?
How do you declare a variable that will hold string values?
What is .obj file in c?
Explain how can I read and write comma-delimited text?
What is a good data structure to use for storing lines of text?