Multiple choice technology programming languages

We need to have a structure day of type date which has the following values. Date day = {17,2,2011}; Will the following Structure declaration Correct? struct date { int mm ; int dd ; date year ; }day;

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The struct contains a member 'date year' of its own type 'struct date', which creates a circular definition. C structs cannot contain members of their own type directly (only pointers). This would cause compilation error.

AI explanation

A struct cannot contain a member of its own type directly, because that would require the struct to embed a complete copy of itself infinitely — its size could never be determined. Declaring date year; inside struct date is therefore invalid; it would only be legal as a pointer (struct date *year;), so this declaration fails to compile.