Int Num 5 Cout Put The Star Next To The Data Type To Make It Easier Na (X) (Na + X)
This document discusses pointers in C++. It declares an integer variable num with a value of 5 and prints the memory address of num. It then declares a pointer variable numAddress and assigns the address of num to it. The document also shows that dereferencing a pointer with * gives the value at that memory location.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
27 views1 page
Int Num 5 Cout Put The Star Next To The Data Type To Make It Easier Na (X) (Na + X)
This document discusses pointers in C++. It declares an integer variable num with a value of 5 and prints the memory address of num. It then declares a pointer variable numAddress and assigns the address of num to it. The document also shows that dereferencing a pointer with * gives the value at that memory location.