Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- ////////////////////////////////////////////////////////////
- int main()
- {
- int array[10] = { 5, 14, 15, 121, 35, 70, 45, 77, 200, 210 };
- int &r = array[3];
- printf("r = %d\n", r);
- int *p = &r;
- for (int i = 0; i < 10; i++)
- {
- printf("array[%2d] = %3d \n", i , p[i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement