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...


Is the following code legal?
struct a
{
int x;
struct a b;
}

Answers were Sorted based on User's Feedback



Is the following code legal? struct a { int x; struct a b; } ..

Answer / raghu

no this code is illegal.

legal one:

struct a
{
int x;
struct a *b;
}

Is This Answer Correct ?    26 Yes 7 No

Is the following code legal? struct a { int x; struct a b; } ..

Answer / siva

This code is illegal.

Is This Answer Correct ?    10 Yes 2 No

Is the following code legal? struct a { int x; struct a b; } ..

Answer / preeti

no. It is illegal ..
Struct shd be ended by a semi colon ..

struct a
{
int x;
struct a b;
};

Is This Answer Correct ?    8 Yes 2 No

Is the following code legal? struct a { int x; struct a b; } ..

Answer / dilpreet

yes, it is nested structure

Is This Answer Correct ?    6 Yes 5 No

Post New Answer

More C Interview Questions

Determine the result of performing two successive block transfers into the same area of a frame buffer using the binary arith operations

0 Answers  


Differentiate between Macro and ordinary definition.

0 Answers   Motorola,


How can I access memory located at a certain address?

3 Answers   Verizon,


Here is a good puzzle: how do you write a program which produces its own source code as output?

0 Answers  


what is ANSI and ISO

7 Answers   HCL,


What are the advantages of using macro in c language?

0 Answers  


What is the purpose of type declarations?

0 Answers  


how to print "hai" in c?

13 Answers   TCS,


What is indirection? How many levels of pointers can you have?

0 Answers   Aspire, Infogain,


Is using exit() the same as using return?

0 Answers  


What does the function toupper() do?

0 Answers  


hi how to convert program from notepad to turboc editor can u please help me

3 Answers  


Categories