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
What is the difference between ++a and a++?
What is the use of printf() and scanf() functions?
Multiply an Integer Number by 2 Without Using Multiplication Operator
What are the different types of control structures?
Can you return null in c?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
What are the advantages and disadvantages of c language?
Explain how many levels deep can include files be nested?
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
Why does not c have an exponentiation operator?
What does c value mean?
Differentiate between full, complete & perfect binary trees.
What is the difference between c &c++?
Compare array data type to pointer data type