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 / mohan

answer would be B) a non integer b/c first strcat returns
"abcdefg" and second strcat returns "efghabcd" when compared
these two strings the output is non interger value

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...

9903


What is #error and use of it?

900


When we use void main and int main?

795


What are the 3 types of structures?

757


What is ambagious result in C? explain with an example.

2291


Are c and c++ the same?

791


Can you define which header file to include at compile time?

782


Write the control statements in C language

855


What are the different types of linkage exist in c?

773


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

887


What are pointers? What are different types of pointers?

809


Here is a neat trick for checking whether two strings are equal

771


What is derived datatype in c?

813


What does struct node * mean?

792


How to create struct variables?

793