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
Sir... please give some important coding questions asked by product companies..
How can you relate the function with the structure? Explain with an appropriate example.
why nlogn is the lower limit of any sort algorithm?
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.
Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ?
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.
Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines
Write a program to model an exploding firecracker in the xy plane using a particle system
Design an implement of the inputs functions for event mode
Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange
How to palindrom string in c language?
how to test pierrot divisor
What is data _null_? ,Explain with code when u need to use it in data step programming ?
write a simple calculator c program to perform addition, subtraction, mul and div.
What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql