hello all,
why the output is always zero when i try to convert it from int to float in the printf function. till i explicitly cast it to a float it keeps on outping zeros. here is the code
and my outputCode:#include<stdio.h> int main() { int a=10; //int *p=&a; printf("%f",a); getchar(); }
can anyone tell me why this stange output isCode:0.000000
thank u
-onthewaytoC