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
What is the use of pragma in embedded c?
What are inbuilt functions in c?
What is sizeof int in c?
program for reversing a selected line word by word when multiple lines are given without using strrev
how to count no of words,characters,lines in a paragraph.
What are the types of data files?
What is huge pointer in c?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
What is the modulus operator?
Using which language Test cases are added in .ptu file of RTRT unit testing???
What are predefined functions in c?
What is the use of function in c?
Explain what is a program flowchart and explain how does it help in writing a program?
How does pointer work in c?
FILE PROGRAMMING