I am using borland C++ compiler ver-3.0 for running C & in that range of char type is -127 to 127.
Q1 In C, characters have ASCII codes in range 0-255. How can we print characters having ASCII code from 128-255.
printf("%c",(unsigned)129); //it will still print the char having ASCII -127
Q2 ASCII char range is 0-255,then where do the characters having -127 to 0 ASCII code come from.
Q3 Where r the local & global static variables stored.
Q4 I read that const variables r stored in rom. How cum bcoz as far as i know rom can be programmed only by hardware means.
Q5
int a=9999;
float *p=(float *)&a;
printf("%f",*p); //output is 0.000000 why?
Q6
printf("%d%d",10ul,10); //output is 100 why?
Q7
float f=10.67;
int *p=(int *)&f;
printf("%d",*p); //output is -18350 why?