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;

}

Answer Posted / susie

Answer :

Yes.

Explanation:

*b is a pointer to type struct a and so is legal. The
compiler knows, the size of the pointer to a structure even
before the size of the structure

is determined(as you know the pointer to any type is of same
size). This type of structures is known as
‘self-referencing’ structure.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ?

4467


Develop a routine to reflect an object about an arbitrarily selected plane

3699


how to test pierrot divisor

2818


What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql

2988


#include int main(void) { int a=4, b=2; a=b<>2 ; printf("%d",a); return 0; }

1699


Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines

3636


Cluster head selection in Wireless Sensor Network using C programming language.

3816


how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.

2738


create a C-code that will display the total fare of a passenger of a taxi if the driver press enter,the timer will stop. Every 10 counts is 2 pesos. Initial value is 25.00

7054


write a simple calculator c program to perform addition, subtraction, mul and div.

3779


What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?

4629


Write a routine to implement the polymarker function

4972


could you please send the program code for multiplying sparse matrix in c????

3631


why nlogn is the lower limit of any sort algorithm?

2902


Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??

2544