zia
Full Member level 5
- Joined
- Sep 24, 2010
- Messages
- 284
- Helped
- 27
- Reputation
- 54
- Reaction score
- 26
- Trophy points
- 1,318
- Location
- Islamabad Pakistan
- Activity points
- 2,746
hi friends
i have faced a strange problem in mikroc compiler.
const float a[]={1.2,2.8,5.1};
char i=1;
then a should equals to 1.2 but not
if replace float with int i-e const int a[]={1,7,9};
then a gives value 7.
but in the case of float why not getting exact value.
may you explain?
i have faced a strange problem in mikroc compiler.
const float a[]={1.2,2.8,5.1};
char i=1;
then a should equals to 1.2 but not
if replace float with int i-e const int a[]={1,7,9};
then a gives value 7.
but in the case of float why not getting exact value.
may you explain?