#include<stdio.h>#include<conio.h>void main(voif){float a=0.9,b=0.9;double c=0.9;if(a<b)printf("yes for b");elseprintf("no for b");if(a<c)printf("nyes for c");elseprintf("nno for c");getch(); }Output: no for byes for c
When a = 0.7internally compiler treats 0.7 as double. Now a is a float and float is always small then double so the if condition is true and answer will beYES
Example to reverse a sentence entered by user without using strings."c /* Example to reverse a sentence entered by user without using strings. */
#include
void Reverse();
int...
ARKAJIT NANDY
Aug 2nd, 2015
"c #include
#include
#include
int main()
{
char st[50], rst[50];
printf("Enter the sentence...
");
gets(st);
int len=strlen(st), p;
int j=-1,k;
p=len;
for(int i=(...