#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
Write a program to print numbers from 1 to 100 without using loop in c?
Can you tell me how to check whether a linked list is circular?
What does 3 mean in texting?
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
Does sprintf put null character?
What does %p mean?
What does %c mean in c?
What is new line escape sequence?
Explain why c is faster than c++?
Where are local variables stored in c?
Write a program to check prime number in c programming?
Explain how can type-insensitive macros be created?
What is #define used for in c?
Define circular linked list.