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
Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ?
Develop a routine to reflect an object about an arbitrarily selected plane
how to test pierrot divisor
What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql
#include
Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines
Cluster head selection in Wireless Sensor Network using C programming language.
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.
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
write a simple calculator c program to perform addition, subtraction, mul and div.
What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?
Write a routine to implement the polymarker function
could you please send the program code for multiplying sparse matrix in c????
why nlogn is the lower limit of any sort algorithm?
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 ??