+ 1
Plz explain how output is 12
#include<stdio.h> int main() { int a=90; int *p1=&a; *p1=11; (*p1)++; printf("%d",a); return 0; }
1 Resposta
+ 3
*p is a pointer on variable (a).
So when u asign 11 to *p that mean the value of variable (a) changes to 11.
Also if u increment *p the value of variable (a) will increment to 12.