#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
Differentiate between new and malloc(), delete and free() ?
What do you mean by recursion in c?
What is c method?
Are pointers really faster than arrays?
Compare array data type to pointer data type
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
How can you call a function, given its name as a string?
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
Explain how do you override a defined macro?
What does sizeof function do?
Explain the red-black trees?
What does struct node * mean?
What is binary tree in c?
Why is structure important for a child?
What is pragma c?