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


Please Help Members By Posting Answers For Below Questions

What is data types?

839


Place the #include statement must be written in the program?

780


What is a nested loop?

884


What is getch() function?

844


Why static is used in c?

844


What is difference between structure and union in c programming?

799


Why C language is a procedural language?

820


Find MAXIMUM of three distinct integers using a single C statement

833


Explain how do you search data in a data file using random access method?

913


What is maximum size of array in c?

793


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.

2492


What is "Duff's Device"?

921


What is pragma in c?

859


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15458


Write a Program to find whether the given number or string is palindrome.

991