C Programming - Structures, Unions, Enums - Discussion
Discussion Forum : Structures, Unions, Enums - True / False Questions (Q.No. 10)
10.
The '->' operator can be used to access structures elements using a pointer to a structure variable only
Discussion:
1 comments Page 1 of 1.
Praphulla said:
1 decade ago
Ex:
struct A
{
int a=32;
}*a;
void main()
{
printtf("structure var is:",*a->a);
}
Output = 32.
struct A
{
int a=32;
}*a;
void main()
{
printtf("structure var is:",*a->a);
}
Output = 32.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers