0

Pointers

Why this works char* arr[3] = {a, b, c} ; But not int* arr[5] = {1,2,3,4,5};

11th Sep 2020, 11:06 AM
shrijith
shrijith - avatar
1 Answer
+ 4
Pointers store addresses, not values. Your first example wouldn't work either if you didn't have variable <a>, <b> and <c>.
11th Sep 2020, 11:16 AM
Ipang