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 does int main () mean?
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
What is c language used for?
Differentiate between declaring a variable and defining a variable?
Explain how are portions of a program disabled in demo versions?
Where is c used?
How can I write functions that take a variable number of arguments?
Why is c so powerful?
What does a pointer variable always consist of?
What is the benefit of using #define to declare a constant?
Why enum is used in c?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
Explain spaghetti programming?
Who invented b language?
What is the difference between typedef struct and struct?