Expand|Select|Wrap|Line Numbers
- #include <stdio.h>
- #include <conio.h>
- void main ()
- {
- float a;
- clrscr();
- a=11/5;
- printf ("%f",a);
- getch ();
- }
Since "a" is defined as float it should have given "2.2" output but gives an integer value.
WHATS WRONG?
What is problem in type declaration FLOAT?
|