adplus-dvertising
frame-decoration

Question

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;

Posted under C Programming

Answer: (d).s[i].b;

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

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