C Programming - Structures, Unions, Enums - Discussion

Discussion Forum : Structures, Unions, Enums - True / False Questions (Q.No. 5)
5.
A structure can be nested inside another structure.
True
False
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
4 comments Page 1 of 1.

Umang said:   8 years ago
@All.

#include<stdio.h>
struct dob
{
int date;
int month;
int year;
};
struct record
{
int rollno;
char name[10];
struct dob;
};

Swapnika said:   9 years ago
How can we access elements declared in a structure?

Krishna said:   1 decade ago
@Ritzz. Yea it is also one way to include one structure variable into another.. or it can be simply done with only declaring one structure into another..for that it must be declared above that.

#include<stdio.h>
struct dob
{
int date;
int month;
int year;
};
struct record
{
int rollno;
char name[10];
struct dob;
};

Ritzz said:   1 decade ago
plz explain.......struct t
{
int a;
char b;
struct k
{
int x;
float y;
};
};is is like that.......

Post your comments here:

Your comments will be displayed after verification.