Instructions:
Output
My·destiny·=·11
#include <iostream>
using namespace std;
int main(void) {
int destiny = 22;
int *ptr1, *ptr2, *ptr3;
// TODOFill in the blank
ptr1 = ;
ptr2 = ptr1;
ptr3 = ptr2;
cout << "My destiny = " << *ptr3;
return 0;
}
#include <iostream>
using namespace std;
int main(void) {
int destiny = 22;
int* ptr1, * ptr2, * ptr3;
// TODOFill in the blank
ptr1 = &destiny;
ptr2 = ptr1;
ptr3 = ptr2;
cout << "My destiny = " << *ptr3;
return 0;
}
Comments
Leave a comment