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 / jitendra kumar arya

c)0

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you assign a different address to an array tag?

691


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

1734


Explain #pragma statements.

598


What is the difference between far and near in c?

589


What is string in c language?

617






Why is c called c?

618


What is spaghetti programming?

662


Explain what are preprocessor directives?

619


Where are local variables stored in c?

562


How are structure passing and returning implemented?

585


How can I do peek and poke in c?

611


Write a program to check whether a number is prime or not using c?

567


If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above

615


Can static variables be declared in a header file?

606


#include #include struct stu { int i; char j; }; union uni { int i; char j; }; void main() { int j,k; clrscr(); struct stu s; j=sizeof(s); printf("%d",j); union uni u; k=sizeof(u); printf("%d",k); getch(); } what is value of j and k.

5177