0

Why

int a[] now it will print same thing for a and &a while char a[] now it will print array for a and memory add for &a

22nd Nov 2017, 8:31 PM
Hassan Sajjad
Hassan Sajjad - avatar
1 Answer
+ 5
It is because of the way << operator is defined for cout and char [] As it store a string, it seems more logical to print it as so
22nd Nov 2017, 8:40 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar