#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
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
Explain what are linked list?
What are the types of data structures in c?
What does %2f mean in c?
How old is c programming language?
What is #include stdlib h?
Can you add pointers together? Why would you?
Write a C program to count the number of email on text
Are pointers integer?
When should I declare a function?
hi send me sample aptitude papers of cts?
What is main return c?
How do I get a null pointer in my programs?
What is the difference between variable declaration and variable definition in c?
What is difference between structure and union in c?