4. Take a look at the code snippet below. What will be the final values of ‘c’, ‘a’, and ‘*p’. int c, a = 10; int *p =
Posted: Sat Feb 19, 2022 3:20 pm
4. Take a look at the code snippet below. What
will be the final values of ‘c’,
‘a’, and ‘*p’.
int c, a = 10;
int *p = &a;
c =
*p;
*p = *p * *p;
(*p)++;
c = *&a;
will be the final values of ‘c’,
‘a’, and ‘*p’.
int c, a = 10;
int *p = &a;
c =
*p;
*p = *p * *p;
(*p)++;
c = *&a;