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


Find the O/p of the following

struct node
{
char *name;
int num;
};
int main()
{
struct node s1={"Harry",1331};
struct node s2=s1;
if(s1==s2)
printf("Same");
else
printf("Diff");
}



Find the O/p of the following struct node { char *name; int num; }; int main..

Answer / sinchan garai

this gives a compile time error.because the coditional
statement "if(s1==s2)" written in the code is not allowable
in C.

Is This Answer Correct ?    4 Yes 2 No

Post New Answer

More C Interview Questions

What is the use of getch ()?

0 Answers  


List the difference between a 'copy constructor' and a 'assignment operator' in C?

0 Answers   Accenture,


print 1-50 with two loop & two print Statement

2 Answers  


What are linker error?

0 Answers  


main() { enum{red,green,blue=6,white}; pf("%d%d%d%d", red,green,blue,white); return 0; } a)0 1 6 2 b)0 1 6 7 c)Compilation error d)None of the above

6 Answers  


What is substring in c?

0 Answers  


How can you determine the size of an allocated portion of memory?

0 Answers   Aspire, Infogain,


What are run-time errors?

0 Answers  


What is a symbolic constant?

1 Answers  


What is the use of bit field?

0 Answers  


Can you think of a way when a program crashed before reaching main? If yes how?

2 Answers  


What is indirection? How many levels of pointers can you have?

0 Answers   Aspire, Infogain,


Categories