Page 1 of 1

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

Posted: Wed Jul 13, 2022 7:54 pm
by answerhappygod
(Assume: struct temp{int a;}s;)
a) func(&s.a);
b) func(&(s).a);
c) func(&(s.a));
d) none of the mentioned