Sambana

-1

votes
2

answer
31

views

Why pointer not giving its Ascii Value

here is my Code. #include int main() { /* code */ char a[5] = {'a','b'}; int *p =a; printf("%d\n", *p); return 0; } So here, When I execute its showing "25185" instead of giving a ascii value. Why is it so? Thank you
Sambana