Is the following code legal?

void main()

{

typedef struct a aType;

aType someVariable;

struct a

{

int x;

aType *b;

};

}

Answer Posted / susie

Answer :

No

Explanation:

When the declaration,

typedef struct a aType;

is encountered body of struct a is not known. This is known
as ‘incomplete types’.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Sir... please give some important coding questions asked by product companies..

2018


How can you relate the function with the structure? Explain with an appropriate example.

3125


why nlogn is the lower limit of any sort algorithm?

2540


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.

2349


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

4069






How can I Create a C program in splitting set of characters to specific subsets. Example: INPUT SET OF CHARACTERS: Therefore, my dear brothers and sisters, stand firm. Let nothing move you. Always give yourselves fully to the work of the Lord, because you know that your labor in the Lord is not in vain. SPLIT INTO HOW MANY CHARACTERS PER SUBSETS: 10 OUTPUT: Therefore, my dear b rothers an d sisters, stand fir m. Let not hing move you. Alway s give you rselves fu lly to the work of t he Lord, b ecause you know that your labo r in the L ord is not in vain.

2159


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

3243


Write a program to model an exploding firecracker in the xy plane using a particle system

3864


Design an implement of the inputs functions for event mode

3162


Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange

3072


How to palindrom string in c language?

9771


how to test pierrot divisor

2457


What is data _null_? ,Explain with code when u need to use it in data step programming ?

3010


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

3382


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

2623