#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 / syam kumar
output is no
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
largest Of three Number using without if condition?
What is the use of typedef in structure in c?
The difference between printf and fprintf is ?
What should malloc() do?
Explain what is the best way to comment out a section of code that contains comments?
Who developed c language and when?
What are the advantages of c preprocessor?
What is the auto keyword good for?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
Write a program for finding factorial of a number.
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
Write the control statements in C language
Why is sprintf unsafe?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
How can I trap or ignore keyboard interrupts like control-c?