Explain the output(pointers)
explain me the output please .As far as my knowledge. a is a character type pointer variable and its size should be 4 bytes irrespective of what its pointing to.but i get a result =50.
*a is the value of a[0] and its size is rightly 1 byte. but how can the size of that variable change to 4 byte when i just add 7 to it(although i don't store the added result anywhere) Code:
#include<stdio.h> Code:
50 |
Quote:
Try this: Code:
#include<stdio.h> |
*a+7 means (*a)+7. And char+int=int.
|
All times are GMT -5. The time now is 10:36 PM. |