why division operator not work in case of float constant?

Answers were Sorted based on User's Feedback



why division operator not work in case of float constant?..

Answer / nishit jain

It works fine in Visual studio!!!

Is This Answer Correct ?    0 Yes 0 No

why division operator not work in case of float constant?..

Answer / 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

More C Interview Questions

What is f'n in math?

0 Answers  


How to implement variable argument functions ?

1 Answers   HP,


What is a null string in c?

0 Answers  


Explain how can I read and write comma-delimited text?

0 Answers  


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

0 Answers  






Do you know the use of fflush() function?

0 Answers  


Write a program to swap two numbers without using third variable in c?

0 Answers  


what is the use of call back function in c?tell me with example

2 Answers   Bosch,


what are the static variables

8 Answers   HCL, iFlex, TCS, Wipro,


What are c preprocessors?

0 Answers  


To what value do nonglobal variables default? 1) auto 2) register 3) static

4 Answers  


7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

0 Answers  


Categories