#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
What substitution should be made to //-Ref such that ptr1 points to variable c in the following C code?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What substitution should be made to //-Ref such that ptr1 points to variable c in the following C code?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!