EmbLogic's Blog

project 1

done assignment no. 3 except Q.8 i have following problems

Q.5char to = 1,from = 2;

to++ = from++;

error is :lvalue required as left operand of assignment

Q.4

float f=0.1f;int i;

for(i=0;i<10;i++)

f=f+0.1f;

if(f==1.0f)

this if condition should be true as on printing the value of f using %f format specifier shows 1.000000.but in program  it is taken as false.WHY????

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>