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

Explain how do you convert strings to numbers in c?

0 Answers  


why we are using semicolon at the end of printh statment

2 Answers   HCL,


Why is main function so important?

0 Answers  


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL

0 Answers  


How do I access command-line arguments?

2 Answers   Bosch, Wipro,






List the difference between a While & Do While loops?

0 Answers   Accenture,


Write a program to write a given string in maximum possibilities? i.e str[5]="reddy"; i.e we can write this string in 120 ways for that write a program

3 Answers   Subex,


Explain what are the different file extensions involved when programming in c?

0 Answers  


In which category does main function belong??

5 Answers  


Write a program to know whether the input number is an armstrong number.

0 Answers   Wipro,


what is calloc and malloc?

2 Answers  


how to print "hai" in c?

13 Answers   TCS,


Categories