Program to declare an integer


Discussion:

Q: Program that does the following:

declare  an integer (var1)

declare a pointer (ptr1) that points to var1

declare a reference (ref1) to var1

assign the address of var1 to ptr1

print the value of var1 using the pointer

use the ref1 to change the value of var1 to var15

print the value of var1 using the ref1

 

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Program to declare an integer
Reference No:- TGS01937533

Now Priced at $20 (50% Discount)

Recommended (91%)

Rated (4.3/5)