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

Answers were Sorted based on User's Feedback



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

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

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

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

Post New Answer

More C Interview Questions

Explain what is page thrashing?

0 Answers  


Which of the following are valid "include" formats? A)#include and #include[file.h] B)#include (file.h) and #include C)#include [file.h] and #include "file.h" D)#include <file.h> and #include "file.h"

15 Answers   Accenture,


Which is better between malloc and calloc?

0 Answers  


Why static variable is used in c?

0 Answers  


can we execute the program with the object file

1 Answers  


What is conio h in c?

0 Answers  


what is the difference between char * const and const char *?

2 Answers   TCS,


how to find out the union of two character arrays?

2 Answers  


palindrome for strings and numbers----Can anybody do the prog?

6 Answers   CTS, TCS, Vipro Lifescience Pvt,


What is the method to save data in stack data structure type?

0 Answers  


What is pass by reference in functions?

0 Answers  


why the execution starts from main function

9 Answers  


Categories