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

What are local variables c?

760


How do you generate random numbers in C?

919


Write a program to know whether the input number is an armstrong number.

905


Can you tell me how to check whether a linked list is circular?

1076


Explain how do you list a file’s date and time?

807


Describe the header file and its usage in c programming?

835


What does a function declared as pascal do differently?

814


What is the ANSI C Standard?

1005


How can I determine whether a machines byte order is big-endian or little-endian?

828


provide an example of the Group by clause, when would you use this clause

1962


Give the rules for variable declaration?

928


‎How to define structures? · ‎

840


What is a char c?

807


What are structure types in C?

870


Explain continue keyword in c

779