I have these 3 problems here out of 20 that I had trouble with.I cant seem to figure it out the output.
Thanks guys.
/*
//problem 1
int number = 99;
2 int *ptr = &number; // address of number is 0012FF7C
cout << number << " " << *ptr << " " << ptr;
/*
//problem 2
char c[] = "Hello you";
char *sPtr = c;
for ( ; *sPtr != 'u'; sPtr++ )
cout << *sPtr;
*/
/*
//problem 3
int a[] = { 1, 2, 3, 4, 5 };
int *ptr = a;
cout << a[ 3 ] << " " << *( ptr + 3 ) << " " << ptr[ 3 ];
*/