Based on the output above show the value of variable

This preview shows page 8 - 10 out of 17 pages.

3.Based on the output above, show the value of variable myvar.Variable addressStorage valueRAM name 4.Type the following program below, compile and run the program
Image of page 8

Subscribe to view the full document.

5.Type the following program below, compile and run the program 6.Complete table below and explain what is your understand with &i and *p?
Image of page 9
while, Variable address p calling address (*p) and storage value p calling for value (&p) As we know : (*)=indirect (&)=address (7 marks) 7. Type the following program below, compile and run the program // Student Name: xxxxxxxx Student ID: xxxxxxx // Lab Title: Declaring pointer 2 Date: xx/xx/xxxx #include<iostream> using namespace std; int main(){ int *numAddr1, *numAddr2; //declare a pointer to an int
Image of page 10

You've reached the end of your free preview.

Want to read all 17 pages?

  • Spring '17
  • Madrid Metro, Metropolitana di Napoli, Osaka Municipal Subway, Montreal Metro

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern