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
How can I delete a file?
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 ].
Differentiate between calloc and malloc.
write a program to create a sparse matrix using dynamic memory allocation.
Ow can I insert or delete a line (or record) in the middle of a file?
what is the difference between 123 and 0123 in c?
What is abstract data structure in c?
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
I heard that you have to include stdio.h before calling printf. Why?
What is the size of structure pointer in c?
How can variables be characterized?
Can a pointer point to null?
What is the use of ?: Operator?
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
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }