why division operator not work in case of float constant?

Answer Posted / vignesh1988i

wat i think is that , when we manipulate floating point
numbers with the same or integers , the resulting should be
float implicitly ... but when we divide any number (floating
or int) the remainder will be in INTEGER only implicitly...
so as defined in compiler numbers with float , if
manipulated gives float implicitly..... but in % operator
that will be made false... that's why i think that is not
allowed!!!!!!!!!!!


thank u

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c still relevant?

640


In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)

1633


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2334


Is c is a low level language?

566


What are the advantages of the functions?

606






What is difference between structure and union?

601


What is the function of volatile in c language?

668


What is context in c?

541


A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM

1699


Explain two-dimensional array.

631


Is void a keyword in c?

578


What is the meaning of 2d in c?

613


Is null valid for pointers to functions?

613


When should a type cast be used?

575


What does sizeof function do?

614