adplus-dvertising
frame-decoration

Question

Which of the following is an incorrect syntax to pass by reference a member of a structure in a function?
(Assume: struct temp{int a;}s;)

a.

func(&s.a;);

b.

func(&(s).a);

c.

func(&(s.a));

d.

None of the above

Posted under C Programming

Answer: (d).None of the above

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following is an incorrect syntax to pass by reference a member of a structure in a function?