11. 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 / student
In that Program
i=strcmp(strcat(s3,strcpy(s2,s1),strcat(s3,"abcd"));
then it results 0
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Tell us bitwise shift operators?
What is clrscr ()?
Why cant I open a file by its explicit path?
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
What are the 5 types of inheritance in c ++?
What is 'bus error'?
What is a file descriptor in c?
What is a buffer in c?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
How do you list a file’s date and time?
Why can't I perform arithmetic on a void* pointer?
Is malloc memset faster than calloc?
Why array is used in c?
write a c program to calculate sum of digits till it reduces to a single digit using recursion