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
Why & is used in c?
please explain every phase in the "SDLC" in the dotnet.
What is pointers in c with example?
Once I have used freopen, how can I get the original stdout (or stdin) back?
What is I ++ in c programming?
Explain how do you sort filenames in a directory?
How do I get an accurate error status return from system on ms-dos?
What does 4d mean in c?
What are dangling pointers in c?
How do you define CONSTANT in C?
List the difference between a "copy constructor" and a "assignment operator"?
What is #error and use of it?
What is NULL pointer?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
Explain how can I right-justify a string?