Solution for Exercise 25-2
ex2502
#include <stdio.h>
#include <stdlib.h>
int main()
{
int x;
int *px;
px=&x;
for(x=0;x<10;x++)
printf("%d\n",*px);
return 0;
}
Notes
* This code contains no errors. The book's text implies it might, but it doesn't. The purpose is merely to monitor the variables x and px from within the debugger.
Copyright © 1997-2025 by QPBC.
All rights reserved
