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

struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer

0 Answers  


could u able to tell about suresoft technical session

1 Answers  


How many levels of pointers can you have?

0 Answers  


How do c compilers work?

0 Answers  


What is infinite loop?

0 Answers  






write a program to find the sum of the array elements in c language?

24 Answers   ICT, Infosys, Wipro,


What are 3 types of structures?

0 Answers  


to write a program, that finds the minimum total number of shelves, including the initial one, required for this loading process. The packets are named A, B, C, D, E …….. Any numbers of packets with these names could be kept in the shelf, as in this example: [ZZLLAAJKRDFDDUUGGYFYYKK]. All packets are to be loaded on cars. The cars are lined in order, so that the packets could be loaded on them. The cars are also named [A, B, C, D, E,………….].

2 Answers   Infosys, TCS,


What is the difference between near, far and huge pointers?

0 Answers  


code for quick sort?

0 Answers  


Explain a file operation in C with an example.

0 Answers   Amdocs,


How to establish connection with oracle database software from c language?

0 Answers  


Categories