// Program 4.4.1 #include using namespace std; int main () { int var = 20; // actual variable declaration. int *ip; // pointer variable ip = &var; // store address of var in pointer variable cout



// Program 4.4.1

#include
using namespace std;
int main ()
{
 int var = 20; // actual variable declaration.
 int *ip; // pointer variable
 ip = &var; // store address of var in pointer variable
 cout < "value="" of="" var="" variable:="" ";="" print="" the="" variable="">
 cout < var=""><><>
 cout < "address="" stored="" in="" ip="" variable:="" ";="" print="" the="" address="" stored="" in="" ip="" pointer="">
 cout < ip=""><><>
 cout < "value="" of="" *ip="" variable:="" ";="" access="" the="" value="" at="" the="" address="" available="" in="">
 cout < *ip=""><>
 return 0;
}




TASK



1. Explain in details what the program does?



2.  What is the output.


Pointer 1<br>// Program 4.4.1<br>#include <iostream><br>using namespace std;<br>int main ()<br>int var = 20;<br>int *ip;<br>ip = &var;<br>// actual variable declaration.<br>// pointer variable<br>// store address of var in pointer variable<br>// print the variable value<br>cout <<

Extracted text: Pointer 1 // Program 4.4.1 #include using namespace std; int main () int var = 20; int *ip; ip = &var; // actual variable declaration. // pointer variable // store address of var in pointer variable // print the variable value cout < "value="" of="" var="" variable:="" ";="" cout="" «="" var=""><«><« endkcendl;="" cout="">< "value="" of="" *ip="" variable:="" ";="" cout=""><« *ip="" «endl;="" occess="" the="" value="" at="" the="" address="" available="" in="" pointer="" return="" 0;="">

Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here