Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 the difference between functions abs() and fabs()?

0 Answers  


Can include files be nested? How many levels deep can include files be nested?

0 Answers   Aspire, Infogain,


Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.

0 Answers  


how can i print "hello"

3 Answers  


Design a program using an array that searches a number if it is found on the list of the given input numbers and locate its exact location in the list.

4 Answers  


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

0 Answers  


write a c/c++ program that takes a 5 digit number and calculates 2 power that number and prints it?

4 Answers  


What is sparse file?

1 Answers  


What is the output of the following program #include<stdio.h> main() { int i=0; fork(); printf("%d",i++); fork(); printf("%d",i++); fork(); wait(); }

8 Answers   ADITI, Adobe,


How can I read a directory in a C program?

2 Answers   Bright Outdoor, Wipro,


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

0 Answers   GrapeCity,


Write a program to show the workingof auto variable.

2 Answers   Infotech,


Categories