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
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
What is spark map function?
What is array within structure?
How to throw some light on the b tree?
Can we declare variables anywhere in c?
What is the use of typedef in structure in c?
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
What are the key features in c programming language?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
Write a program for finding factorial of a number.
Why #include is used in c language?
How is a null pointer different from a dangling pointer?
What are the advantages of using Unions?
What is s in c?
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?