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

4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.

2245


what is reason of your company position's in india no. 1.

2413


please explain every phase in the "SDLC" in the dotnet.

2676


a c code by using memory allocation for add ,multiply of sprase matrixes

2865


Which is better between malloc and calloc?

1257


Is null always equal to 0(zero)?

1098


Do you know the use of 'auto' keyword?

1267


How can I read/write structures from/to data files?

1017


a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

1286


Why is #define used?

1337


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

1174


What are the types of data types and explain?

1137


What is a good data structure to use for storing lines of text?

1142


How many types of errors are there in c language? Explain

1029


Differentiate between null and void pointers.

1233