<<< Pointer "vocalization" | Index | Why use pointers? >>> |
int main( ) { int x = 1; // x is an integer int y = 2; // y is another integer int* ptr; // ptr is a pointer to integer ptr = &x; // store the address of x in ptr ptr = &y; // store the address of y in ptr return 0; }
<<< Pointer "vocalization" | Index | Why use pointers? >>> |