#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 / ravi kant singh
Answer is it will print no.....because you can not compare two floating point number upto precision
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER
Explain how do you print an address?
What do you mean by a local block?
What is strcpy() function?
Explain what is the use of a semicolon (;) at the end of every program statement?
Explain is it better to bitshift a value than to multiply by 2?
What is the difference between int main and void main in c?
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
What is the difference between test design and test case design?
What is file in c preprocessor?
What is structure of c program?
What is the difference between #include and #include 'file' ?
I need previous papers of CSC.......plz help out by posting them.......
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
What is binary tree in c?