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

program to find which character is occured more times in a string and how many times it has occured? for example in the sentence "i love india" the output should be i & 3.

3 Answers  


What is the difference between ++a and a++?

0 Answers  


Explain how can I manipulate strings of multibyte characters?

0 Answers  


What is the difference between declaring a variable and defining a variable?

0 Answers  


What is modeling?

0 Answers  


What is void c?

0 Answers  


Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

0 Answers  


What is fflush() function?

0 Answers  


what are non standard function in c

0 Answers  


Write a function that accepts a sentence as a parameter, and returns the same with each of its words reversed. The returned sentence should have 1 blank space between each pair of words. Demonstrate the usage of this function from a main program. Example: Parameter: “jack and jill went up a hill” Return Value: “kcaj dna llij tnew pu a llih”

5 Answers   Mind Tree,


triangle number finding program...

1 Answers   HCL,


An interactive c program to read basic salary of 15 persons. each person gets 25% of basic as HRA, 15%of basic as conveyance allowances, 10%of basic as entertainment allowances.The total salary is calculated by adding basic+HRA+CA+EA.Calculate how many out of 15 get salary above 10,000.Rs also print the salary of each employee

2 Answers  


Categories