struct node {struct node*temp,*new}
prinf("%d",sizeof(struct node));
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / dani
It's architecture dependent. If you have a 32 bit address than the output will be 4 (octets), if the address is 64 bit than it'll be 8.
| Is This Answer Correct ? | 0 Yes | 1 No |
What is the usage of the pointer in c?
Function calling procedures? and their differences? Why should one go for Call by Reference?
What is a rvalue?
How to print "Hi World" without using semi colon?
Can the “if” function be used in comparing strings?
what is the output of the program?? #include<stdio.h> main ( ) { int a=010,sum=0,tracker: for(tracker=0;tracker<=a;tracker++) sum+=tracker; printf(ā %d\nā,sum); } what is the difference between a=10 and a=010??
main() { intx=2,y=6,z=6; x=y=z; printf(%d",x) }
5 Answers Amazon, HCL, Thought Works,
What is bash c?
What is gets() function?
int x=sizeof(!5.856); What will value of variable x?
How can I dynamically allocate arrays?
How many keywords (reserve words) are in c?