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 does %c do in c?

0 Answers  


Explain union. What are its advantages?

0 Answers  


What is dynamic memory allocation?

0 Answers  


What is the ANSI C Standard?

0 Answers   Celstream,


What is data types?

0 Answers  






How does C++ help with the tradeoff of safety vs. usability?

1 Answers  


I have an array of 100 elements. Each element contains some text. i want to: append a star character to the end of every fifth element remove every second character from every tenth element, and… add a line feed (ascii 10) after the 30th character of every array element whose length is greater than 30 characters.

1 Answers  


What is integer constants?

0 Answers  


how logic is used

0 Answers  


Explain #pragma statements.

0 Answers  


Explain the properties of union.

0 Answers  


Predict the output or error(s) for the following: 25. main() { printf("%p",main); }

3 Answers   Google, ME,


Categories