why division operator not work in case of float constant?
Answers were Sorted based on User's Feedback
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 |
What is a pointer on a pointer in c programming language?
accept character from keyboard untill the user presses the enter key.If the user enters any character other than upper case(A-Z)alphabets program should stop taking any input
How many types of sorting are there in c?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
Why doesnt that code work?
What does static variable mean in c?
main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); } wat is the o/p and how?
How do I round numbers?
How the processor registers can be used in C ?
Why can't we initialise member variable of a strucutre