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
When the macros gets expanded?
Explain built-in function?
What are the data types present in c?
How can a program be made to print the line number where an error occurs?
What is #include cctype?
Why header file is used in c?
What is "Hungarian Notation"?
What is structure and union in c?
how logic is used
Explain how do you list a file’s date and time?
What is far pointer in c?
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include
What's the difference between constant char *p and char * constant p?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
What is extern c used for?