How to print the value of more than one address of integer assigned | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to print the value of more than one address of integer assigned

int a=2,b=4. int*pa=&a int*pb=&b cout<<*pa__*pb<<endl;

19th Jul 2017, 2:01 PM
Randeep
1 Answer
+ 5
?? cout << *pa; cout << *pb; cout << *pa << " " << *pb << endl;
19th Jul 2017, 2:07 PM
jay
jay - avatar