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


Please Help Members By Posting Answers For Below Questions

What is a stream in c programming?

581


What are variables and it what way is it different from constants?

773


What is difference between array and pointer in c?

532


What are terms in math?

577


What are the 3 types of structures?

558






How do you list a file’s date and time?

619


How to compare array with pointer in c?

610


#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); }

620


What is the difference between a string and an array?

699


What is indirection? How many levels of pointers can you have?

650


Describe static function with its usage?

600


How can you increase the size of a statically allocated array?

606


Define the scope of static variables.

596


Add Two Numbers Without Using the Addition Operator

348


Why is void main used?

607