C Programming - Declarations and Initializations - Discussion

Discussion Forum : Declarations and Initializations - Point Out Correct Statements (Q.No. 4)
4.
Which of the structure is incorrcet?
1 :
struct aa
{
    int a;
    float b;
};
2 :
struct aa
{
    int a;
    float b;
    struct aa var;
};
3 :
struct aa
{
    int a;
    float b;
    struct aa *var;
};
1
2
3
1, 2, 3
Answer: Option
Explanation:

Option B gives "Undefined structure in 'aa'" error.

Discussion:
29 comments Page 3 of 3.

Harsha said:   1 decade ago
Why it gives such error? Give clear explanation.

Mosin said:   1 decade ago
Give diff b/w struct aa var and struct aa *var.

Hariom said:   1 decade ago
Can you please explain more in this question?

Sampavi said:   1 decade ago
I can't understand. Give briefy explaination.

Bindu said:   8 years ago
Please explain briefly I can't understand.

Rashmi said:   5 years ago
Anyone please explain the right answer.
(1)

Mani said:   1 decade ago
Why it is incorrect please incorrect?

Vrushali kute said:   8 years ago
I think C is the correct answer.

C.kumar said:   7 years ago
Thank you @Jarvis.


Post your comments here:

Your comments will be displayed after verification.