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
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
How can I discover how many arguments a function was actually called with?
why return type of main is not necessary in linux
What are type modifiers in c?
What are the advantages of using Unions?
Is calloc better than malloc?
What are the types of macro formats?
What are run-time errors?
develop algorithms to add polynomials (i) in one variable
Tell me the use of bit field in c language?
Implement bit Array in C.
When a c file is executed there are many files that are automatically opened what are they files?
Can we replace the struct function in tree syntax with a union?
What is size of union in c?
How do you print an address?