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 how can you tell whether two strings are the same?
Difference between pass by reference and pass by value?
Why we use break in c?
What is the role of && operator in a program code?
Can we increase size of array in c?
Why c is called free form language?
How is pointer initialized in c?
How can I manipulate strings of multibyte characters?
What is meant by realloc()?
What is a null pointer in c?
What is typedef struct in c?
Are enumerations really portable?
What is structure data type in c?
Can you add pointers together? Why would you?
How can I remove the leading spaces from a string?