struct node {struct node*temp,*new}
prinf("%d",sizeof(struct node));

Answer Posted / aravind

ok guys.
Here first structure is not ended with a
termination.Structure is nested with another
structure.Usually pointer takes 4 bytes for GCC compiler
and here he defined 2 pointers so o/p would be 8 bytes but
compiler shows error of being undeclared structure

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I delete a file?

626


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

636


Differentiate between calloc and malloc.

751


write a program to create a sparse matrix using dynamic memory allocation.

4370


Ow can I insert or delete a line (or record) in the middle of a file?

569






what is the difference between 123 and 0123 in c?

716


What is abstract data structure in c?

523


Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix

1510


I heard that you have to include stdio.h before calling printf. Why?

582


What is the size of structure pointer in c?

610


How can variables be characterized?

1645


Can a pointer point to null?

582


What is the use of ?: Operator?

660


in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures

674


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

632