C Programming - Structures, Unions, Enums - Discussion
Discussion Forum : Structures, Unions, Enums - True / False Questions (Q.No. 11)
11.
It is not possible to create an array of pointer to structures.
Discussion:
9 comments Page 1 of 1.
Maya said:
1 decade ago
Please explain.
NRV said:
1 decade ago
Making sure of the length has nothing to do with whether you assign or copy. You cannot assign to an array in C, ever. The language doesn't allow it.
Swathi pearl said:
1 decade ago
It is possible to create an array of pointer to structures.
Pratster said:
1 decade ago
struct tag{
}struct_obj;
struct *xp[10];
}struct_obj;
struct *xp[10];
Rohit said:
1 decade ago
@Swathi.
Pearl, so is it true or false? Have they got it wrong?
Pearl, so is it true or false? Have they got it wrong?
Marty said:
1 decade ago
struct stud
{
int roll;
char name[10];
}*ptr[20];
{
int roll;
char name[10];
}*ptr[20];
Divya said:
8 years ago
How it will work, Can you explain @Marty.
Mounica said:
8 years ago
Please give the correct explanations.
Shubham said:
8 years ago
Because array stored a data in homogenous format.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers