Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



11. Look at the Code: #include<string.h> void main() { char s1[]="abcd"; char s..

Answer / subha

answer:c

Is This Answer Correct ?    9 Yes 0 No

11. Look at the Code: #include<string.h> void main() { char s1[]="abcd"; char s..

Answer / raja

answer is 0....ie the right option is (C)

Is This Answer Correct ?    7 Yes 0 No

11. Look at the Code: #include<string.h> void main() { char s1[]="abcd"; char s..

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

11. Look at the Code: #include<string.h> void main() { char s1[]="abcd"; char s..

Answer / anand

#include<string.h>
main()
{
char s1[]="abcd";
char s2[10];
char s3[]="efgh";
int i;
i=strcmp(strcat(s3,strcpy(s2,s1)),strcat(s3,"abcd"));
//i=strcmp(strcat(s3,strcpy(s2,s1))strcat(s3,"abcd"));
printf("%d",i);
return 0;
}

ans:0
strcpy(efgh,abcd)=efghabcd
strcat(efgh,abcd)=efghabcd

Is This Answer Correct ?    2 Yes 0 No

11. Look at the Code: #include<string.h> void main() { char s1[]="abcd"; char s..

Answer / basha

No out put will come bcoz errors are there in the program

Is This Answer Correct ?    1 Yes 1 No

11. Look at the Code: #include<string.h> void main() { char s1[]="abcd"; char s..

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

11. Look at the Code: #include<string.h> void main() { char s1[]="abcd"; char s..

Answer / priya

Answer is d

Is This Answer Correct ?    0 Yes 6 No

Post New Answer

More C Interview Questions

What is the most efficient way to store flag values?

0 Answers  


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

0 Answers  


What are the difference between a free-standing and a hosted environment?

0 Answers   Infogain,


how to construct a simulator keeping the logical boolean gates in c

0 Answers  


2. What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the next lower integer B)it returns the value rounded up to the next higher integer C)the Next Higher Value D)the next lower value

3 Answers   Accenture,


Can you mix old-style and new-style function syntax?

0 Answers  


64/square(4)

1 Answers  


What math functions are available for integers? For floating point?

0 Answers  


How can I find out if there are characters available for reading?

0 Answers  


Is it possible to execute code even after the program exits the main() function?

0 Answers  


In the following code segment what will be the result of the function, value of x , value of y { unsigned int x=-1; int y; y = ~0; if(x == y) printf("same"); else printf("not same"); } a) same, MAXINT, -1 b) not same, MAXINT, -MAXINT c) same , MAXUNIT, -1 d) same, MAXUNIT, MAXUNIT e) not same, MAXINT, MAXUNIT

1 Answers   IBM,


In which category does main function belong??

5 Answers  


Categories