Introduction
Statistics
Contact
Development
Disclaimer
Help
sdf.org home page
/*
* Super simple program to demonstrate variable storage.
*/
int main(void) {
int x=5; //create an integer
int y; //second integer
int *ptr; //a pointer
//get the pointer an address
ptr = &y;
//assigns sum to y!
*ptr = x+5;
return 0;
}