What substitution should be made to //-Ref such that ptr1 points to variable c in the following C code?
Posted: Wed Jul 13, 2022 7:54 pm
#include <stdio.h> int main() { int a = 1, b = 2, c = 3; int *ptr1 = &a; int **sptr = &ptr1; //-Ref }
a) *sptr = &c;
b) **sptr = &c;
c) *ptr1 = &c;
d) none of the mentioned
a) *sptr = &c;
b) **sptr = &c;
c) *ptr1 = &c;
d) none of the mentioned