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
What are local variables c?
How do you generate random numbers in C?
Write a program to know whether the input number is an armstrong number.
Can you tell me how to check whether a linked list is circular?
Explain how do you list a file’s date and time?
Describe the header file and its usage in c programming?
What does a function declared as pascal do differently?
What is the ANSI C Standard?
How can I determine whether a machines byte order is big-endian or little-endian?
provide an example of the Group by clause, when would you use this clause
Give the rules for variable declaration?
How to define structures? ·
What is a char c?
What are structure types in C?
Explain continue keyword in c