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

HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

0 Answers  


What is calloc malloc realloc in c?

0 Answers  


what will be printed by this printf? printf("%c",printf("hi")["sharkselva"])); }

3 Answers   HCL,


What are two dimensional arrays alternatively called as?

0 Answers  


What are the types of data files?

0 Answers  






What is the best way of making my program efficient?

0 Answers  


What are categories used for in c?

0 Answers  


When should the volatile modifier be used?

0 Answers  


List the difference between a 'copy constructor' and a 'assignment operator' in C?

0 Answers   Accenture,


Explain what are multibyte characters?

0 Answers  


coding for Fibonacci.?

1 Answers  


what is pointer?

4 Answers  


Categories