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

Answers were Sorted based on User's Feedback



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

Answer / kuldeep singh

undefined function call as ctrcpy() and , missing in
function strcmp()
after editing we get 0 answer............

Is This Answer Correct ?    4 Yes 1 No

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

Answer / vikram

the question is not correctly written;
undefined ctrcpy,no commas,no header file stdio.h;
if it is correctly written,then the output will be 0 since
the strings efghabcd match and we know that strcmp returns 0
if the two strings match

Is This Answer Correct ?    3 Yes 0 No

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

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

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

Answer / guest

Syntax error at line strcmp.....

Is This Answer Correct ?    2 Yes 2 No

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

Answer / ayyanar.m

garbage

Is This Answer Correct ?    0 Yes 0 No

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

Answer / rishab

Answer is 0, if you will correct the syntax

Is This Answer Correct ?    0 Yes 0 No

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

Answer / jitendra kumar arya

c)0

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More C Interview Questions

Write a program to print prime nums from 1-20 using c programing?

13 Answers   IBM,


What are extern variables in c?

0 Answers  


What is use of #include in c?

0 Answers  


What is the difference between array and linked list in c?

0 Answers  


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

0 Answers  


What language is windows 1.0 written?

0 Answers  


how to generate sparse matrix in c

3 Answers  


What is typeof in c?

0 Answers  


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

0 Answers  


What is void main () in c?

0 Answers  


What is the purpose of realloc()?

0 Answers  


What does the error 'Null Pointer Assignment' mean and what causes this error?

0 Answers   TISL,


Categories