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
Explain what is the concatenation operator?
Tell me what is the purpose of 'register' keyword in c language?
what type of questions arrive in interview over c programming?
I have seen function declarations that look like this
What does *p++ do? What does it point to?
Is register a keyword in c?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
What is static and volatile in c?
What is int main () in c?
Are c and c++ the same?
What does calloc stand for?
Explain the difference between the local variable and global variable in c?
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
What is strcpy() function?
Why use int main instead of void main?