#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


Please Help Members By Posting Answers For Below Questions

What is a file descriptor in c?

555


Write a program to print factorial of given number using recursion?

595


How can I remove the leading spaces from a string?

623


Explain why C language is procedural?

764


Is Exception handling possible in c language?

1572






What is pre-emptive data structure and explain it with example?

3202


How many levels of pointers have?

585


Write a program to check prime number in c programming?

586


What is openmp in c?

602


How arrays can be passed to a user defined function

568


Explain goto?

705


What is a macro?

650


Where does the name "C" come from, anyway?

632


What is the use of sizeof?

542


Can you assign a different address to an array tag?

691