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 is the difference between fread and fwrite function?
What is a volatile keyword in c?
What is the benefit of using #define to declare a constant?
What is this infamous null pointer, anyway?
What are register variables? What are the advantage of using register variables?
Can stdout be forced to print somewhere other than the screen?
What is the purpose of void in c?
What are directives in c?
what are the facialities provided by you after the selection of the student.
formula to convert 2500mmh2o into m3/hr
What are the back slash character constants or escape sequence charactersavailable in c?
What is bin sh c?
How many levels of pointers have?
How can I open files mentioned on the command line, and parse option flags?
Explain how do you view the path?