What will be output if you compile and execute the following ‘C’ code?
void main() { float a=5.2; if(a==5.2) printf("Equal"); else if(a<5.2) printf("Less than"); else printf("Greater than"); }
float a=5.2; if(a==5.2) printf("Equal"); else if(a<5.2) printf("Less than"); else printf("Greater than"); }
What will be the output of following program?
int main() { for(int c=1;c<5;++c); printf(“%d”,c); }