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

Can u return two values using return keyword? If yes, how? If no, why?

7 Answers  


Can a local variable be volatile in c?

0 Answers  


how does printf function work

1 Answers  


Hai friends im a i year student. i want to develop my knowledge in the field of TSR in c. How I'm Improve ?

2 Answers  


Write a program for finding factorial of a number.

0 Answers   Tech Mahindra,






Is main an identifier in c?

0 Answers  


what is difference between overriding and overloading?

1 Answers  


Write a code to remove duplicates in a string.

0 Answers   Expedia,


What is c language and why we use it?

0 Answers  


write a “Hello World” program in “c” without using a semicolon?

9 Answers   CTS, TCS, Wipro,


Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?

0 Answers  


What is function definition in c?

0 Answers  


Categories