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 an array in c?
What is the method to save data in stack data structure type?
Explain what are header files and explain what are its uses in c programming?
Why calloc is better than malloc?
Why double pointer is used in c?
What is cohesion and coupling in c?
to find the closest pair
what are # pragma staments?
Is there a built-in function in C that can be used for sorting data?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
What is structure data type in c?
Can a pointer point to null?
Explain what will the preprocessor do for a program?
Do you know the difference between exit() and _exit() function in c?
What is the use of a semicolon (;) at the end of every program statement?