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 / 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 |
How can I allocate arrays or structures bigger than 64K?
What are the complete rules for header file searching?
What is the difference between typeof(foo) and myFoo.GetType()?
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f
write a program to find out prime number using sieve case?
how can u print a message without using any library function in c
What is extern storage class in c?
Why do some versions of toupper act strangely if given an upper-case letter?
sir, i cannot find the way how to write aprogram by using array on queue
What is dynamic variable in c?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
What is the size of a union variable?