#include<stdio.h>
#include<conio.h>
void main()
{
float a;
clrscr();
a=0.5;
if(a==0.5)
printf("yes");
else
printf("no");
getch();
}
Answer Posted / sandeep
output is no beacause the default datatype of a floatingpoint value is "double",and doubles are always bigger than floats
so in above a is "float" where 0.5 is double
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
Why is c called a structured programming language?
What is the role of this pointer?
What is the use of bitwise operator?
what is uses of .net
How do you define structure?
What does nil mean in c?
int far *near * p; means
write a c program to calculate sum of digits till it reduces to a single digit using recursion
In a switch statement, explain what will happen if a break statement is omitted?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
Which header file is essential for using strcmp function?
What is meant by preprocessor in c?
What does != Mean in c?
difference between Low, Middle, High Level languages in c ?