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 are the various memory handling mechanisms in C ?
How can I change the size of the dynamically allocated array?
What are the advantages and disadvantages of pointers?
who is first prime minister in india??
int arr[] = {1,2,3,4} int *ptr=arr; *(arr+3) = *++ptr + *ptr++; Final contents of arr[]
What is the difference between near, far and huge pointers?
What are the different flags in C? And how they are useful? And give example for each in different consequences?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
Give the output for the following program. #define STYLE1 char main() { typedef char STYLE2; STYLE1 x; STYLE2 y; clrscr(); x=255; y=255; printf("%d %d\n",x,y); }
What is data type long in c?
Why isn't it being handled properly?
What is static identifier?