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
What is a stream in c programming?
What are variables and it what way is it different from constants?
What is difference between array and pointer in c?
What are terms in math?
What are the 3 types of structures?
How do you list a file’s date and time?
How to compare array with pointer in c?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
What is the difference between a string and an array?
What is indirection? How many levels of pointers can you have?
Describe static function with its usage?
How can you increase the size of a statically allocated array?
Define the scope of static variables.
Add Two Numbers Without Using the Addition Operator
Why is void main used?