#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

HI froends this is sandeep,
Coming to the question :
First of all we should know that in c language:
integers by default are treated as int,
and numbers with decimal point as double.
so int the ques tion "a is float",but "0.5 is double by default" and "double > float by default"
so "a==0.5" turns out to be false,
so else statement will be executed


output:no

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 static identifier?

693


What are keywords c?

593


What is the difference between printf and scanf )?

581


What is meant by 'bit masking'?

876


exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above

654






Do you know the use of fflush() function?

591


Explain the difference between getch() and getche() in c?

557


What are the advantages of using linked list for tree construction?

634


how to create duplicate link list using C???

2058


What is strcmp in c?

589


Differentiate call by value and call by reference?

557


What is substring in c?

628


What is the sizeof () a pointer?

540


please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

1535


Explain low-order bytes.

615