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

Which type of language is c?

868


How do you define structure?

835


What are loops in c?

804


difference between native and cross compilers

1903


Why pointers are used in c?

797


What is the function of multilevel pointer in c?

876


Why C language is a procedural language?

842


How can my program discover the complete pathname to the executable from which it was invoked?

888


How can type-insensitive macros be created?

953


console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above

895


What is break statement?

885


Explain what are preprocessor directives?

853


Is javascript based on c?

825


show how link list can be used to repersent the following polynomial i) 5x+2

1931


can anyone please tell about the nested interrupts?

1916