Question: *****USING C++ LANGUAGE***********USING C++ LANGUAGE***********USING C++ LANGUAGE***********USING C++ LANGUAGE****** rogram 9-1 demonstrates the use of the address operator to display the address, size, and contents

*****USING C++ LANGUAGE***********USING C++ LANGUAGE***********USING C++ LANGUAGE***********USING C++ LANGUAGE******\

*****USING C++ LANGUAGE***********USING C++ LANGUAGE***********USING C++ LANGUAGE***********USING C++ LANGUAGE******\ rogram 9-1 demonstrates

the use of the address operator to display the address, size, and

contents of a variable. Program 9-1 Program Output The address of x

is 08 f0 5 The size of x is 4 bytes The

value in x is 25 Program 9-2 ! demonstrates a very simple

rogram 9-1 demonstrates the use of the address operator to display the address, size, and contents of a variable. Program 9-1 Program Output The address of x is 08 f0 5 The size of x is 4 bytes The value in x is 25 Program 9-2 ! demonstrates a very simple usage of a pointer: storing and printing the address of another variable. Program 9-2 Program 9-4 demonstrates that pointers can point to different variables. Program 9-4 Program Output Here are the values of x,y, and z : 255075 Once again, here are the values of x,y, and z : 125150175 1// This program shows an array name being dereferenced with the * 2// operator. 3 \#include 4 using namespace std; 5 6 int main() 71 8 short numbers []={10,20,30,40,50}; 9 10 cout "The first element of the array is "; 11 cout + numberg endl; 12 return 0 ; 133 Program Output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!