#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 / ankita sharma

Answer will be yes. we can compare two floating point numbers. as a is having value 0.5 and when it is compared with 0.5 so 1st printf would get executed which is inside if statement. so we would get answer as "yes" on the console window as output.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between new and malloc(), delete and free() ?

659


What do you mean by recursion in c?

615


What is c method?

525


Are pointers really faster than arrays?

552


Compare array data type to pointer data type

592






A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

635


How can you call a function, given its name as a string?

706


On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

648


Explain how do you override a defined macro?

575


What does sizeof function do?

604


Explain the red-black trees?

599


What does struct node * mean?

588


What is binary tree in c?

617


Why is structure important for a child?

597


What is pragma c?

601