-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtut12.cpp
More file actions
24 lines (18 loc) · 704 Bytes
/
Copy pathtut12.cpp
File metadata and controls
24 lines (18 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// #include <iostream>
// using namespace std;
// int main(){
// // What is pointer --> data type which holds the address of other data types
// int a = 77;
// int *b = &a;
// // & ---> (address of) operator
// cout<<"the address of a is "<<&a<<endl;
// cout<<"the address of a is "<<b<<endl;
// // * --> (value at ) deffrence operator
// cout<<"The value of a is "<<*b<<endl;
// // Pointer to pointer variable
// int **c = &b ;
// cout<<"the address of b is "<<&c<<endl;
// cout<<"the address of b is "<<*c<<endl;
// cout<<"the value at address c is "<<*c<<endl;
// cout<<"the address value_at (value at (c)) is "<<**c<<endl;
// }