Posts by user51446 • 63 points
1 post
-
6
votes2
answers148
viewsQ: Why doesn’t the pointer increase the value?
Here was to increase the value of the variable, but it does not work. #include <stdio.h> #include <stdlib.h> int main() { int *p, x = 10; p = &x; *p = (*p)++; printf("%d \n", *p);…