Consider the following code.
struct account{
int acno;
}svar, *pv = &svar;
then the acno can be accessed by
struct account{
int acno;
}svar, *pv = &svar;A. svar.acno
B. pv->acno
C. (*pv).acno
D. A, B and C
E. A and B only
Answer: Option D
Solution (By Examveda Team)
As all the ways are legal and valid.
Related Questions on Structure and Union
Which of the following can be a member of a structure?
A. Function
B. Another structure
C. Enumeration
D. All of the above

Join The Discussion