Top

Discussion

The correct syntax to access the member of the ith structure in the array of structures is?

Assuming: 
struct temp
{
  int b;
}s[50];

 

  • A.s.b.[i];
  • B.s.[i].b;
  • C.s.b[i];
  • D.s[i].b;

Answer: D

 

The correct syntax to access the member of the ith structure in the array of structures is s[i].b;

No comment is present. Be the first to comment.
Loading…

Post your comment