0

What makes difference between char, int, float, double in pointer?

int score = 5; int *scorePtr; scorePtr = &score; cout << scorePtr << endl; This is a simple example but if i chage int to double the output is changed. Same for char, double. Why? What makes them different?

15th Mar 2017, 5:51 PM
Shuvam Pal
Shuvam Pal - avatar
1 Respuesta
0
its type like characters are bytes by value.only its type make it character not number
15th Mar 2017, 6:57 PM
tomitheninja
tomitheninja - avatar