Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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;

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote