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

can any one tell that i have a variable which is declared as static but i want this variable to be visible to the other files? how?

2 Answers  


hi any body pls give me company name interview conduct "c" language only

0 Answers  


write a code for large nos multilication (upto 200 digits)

2 Answers   Persistent,


array of pointer pointer to array pointer to pointer

1 Answers   MAHINDRA,


How do you determine the length of a string value that was stored in a variable?

0 Answers  


i got 75% in all semester am i eligible for your company

0 Answers   Infosys,


What is string concatenation in c?

0 Answers  


What is a list in c?

0 Answers  


Is multithreading possible in c?

0 Answers  


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

0 Answers  


what are bps & baud rates? differentiate these two?

2 Answers   TCS,


What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }

0 Answers   Google,


Categories