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...

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

if u write the write the code as i=strcmp(strcat(s3,ctrcpy
(s2,s1)),strcat(s3,"abcd")); then it will print 0

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an array in c?

1059


What is the method to save data in stack data structure type?

1096


Explain what are header files and explain what are its uses in c programming?

1161


Why calloc is better than malloc?

1045


Why double pointer is used in c?

1047


What is cohesion and coupling in c?

1038


to find the closest pair

2326


what are # pragma staments?

2049


Is there a built-in function in C that can be used for sorting data?

1272


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

1025


What is structure data type in c?

1030


Can a pointer point to null?

1072


Explain what will the preprocessor do for a program?

1074


Do you know the difference between exit() and _exit() function in c?

1065


What is the use of a semicolon (;) at the end of every program statement?

1518