0% 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.

Uploaded by

Misolovo123
Copyright
© Attribution Non-Commercial (BY-NC)
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% 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.

Uploaded by

Misolovo123
Copyright
© Attribution Non-Commercial (BY-NC)
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
You are on page 1/ 1

int num = 5; cout << &num <<endl; int* numAdress = &num; int*ptr.

---> put the star next to the data type to make it easier na[x]; = *(na + x);

pointers! ||||||| Hold memory locations

You might also like