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");
}

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you write a program which produces its own source code as output?

602


What is f'n in math?

614


a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

608


What is a function in c?

567


What does 4d mean in c?

935






What is the process to generate random numbers in c programming language?

604


Is main is user defined function?

588


hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .

1895


Why does not c have an exponentiation operator?

624


What is stack in c?

607


How can I manipulate strings of multibyte characters?

631


What are formal parameters?

652


How many identifiers are there in c?

576


What is the benefit of using #define to declare a constant?

601


Differentiate between full, complete & perfect binary trees.

667