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

we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above

0 Answers  


Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.

0 Answers   Infosys,


What is hungarian notation? Is it worthwhile?

0 Answers  


What are the 5 types of organizational structures?

0 Answers  


How many types of arrays are there in c?

0 Answers  






write a program that will print %d in the output screen??

9 Answers   Infosys,


Why is sizeof () an operator and not a function?

0 Answers  


who did come first hen or agg

15 Answers   Infosys,


What is difference between constant pointer and constant variable?

0 Answers   Hexaware,


Why c is called a middle level language?

0 Answers  


int i=~0; uint j=(uint)i; j++; printf(“%d”,j);

1 Answers  


A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(

0 Answers  


Categories