Assume an integer point has been declared with identifier pMyIntPointer and poin
ID: 3532667 • Letter: A
Question
Assume an integer point has been declared with identifier pMyIntPointer and pointed to the NULL address. Write a statement that points the pointer atsomeInteger. Begin with the following code:
#include <iostream>
using namespace std;
int main() {
int someInteger = 10;
// YOUR CODE GOES HERE
return 0;
}
Assuming an integer pointer called pMyIntPointer has been declared and pointed to someInteger, write a statement that changes the value of 10 insomeInteger to 20. Begin with the following code:
#include <iostream>
using namespace std;
int main() {
int someInteger = 10;
// YOUR STATEMENTS GO HERE
return 0;
}
PLEASE ANSWER THESE TWO QUESTIONS USING THE PROVIDED CODE BELOW EACH.
Explanation / Answer
please rate - thanks
#include <iostream>
using namespace std;
int main() {
int someInteger = 10;
// YOUR CODE GOES HERE
int* pMyIntPointer;
pMyIntPointer=&someInteger;
cout<<*pMyIntPointer<<endl;
system("pause");
return 0;
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.