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
How do you write a program which produces its own source code as output?
What is f'n in math?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
What is a function in c?
What does 4d mean in c?
What is the process to generate random numbers in c programming language?
Is main is user defined function?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
Why does not c have an exponentiation operator?
What is stack in c?
How can I manipulate strings of multibyte characters?
What are formal parameters?
How many identifiers are there in c?
What is the benefit of using #define to declare a constant?
Differentiate between full, complete & perfect binary trees.