what is the output of the following program?
#include<stdio.h>
void main()
{
float x=1.1;
while(x==1.1)
{
printf("\n%f",x);
x=x-0.1;
}
}

Answer Posted / vikram

No output.Since a float variable is compared with double
constant,condition will not satisfy.
if you don't believe,try your hand on it.

Is This Answer Correct ?    31 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

a c code by using memory allocation for add ,multiply of sprase matrixes

2537


Is r written in c?

901


What is difference between && and & in c?

860


Is c language still used?

737


the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above

805


What do you mean by scope of a variable in c?

769


Why clrscr is used after variable declaration?

1317


What does == mean in texting?

933


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1394


Write a program to print numbers from 1 to 100 without using loop in c?

864


How can you find out how much memory is available?

813


What is the benefit of using const for declaring constants?

813


What do you mean by a local block?

835


What is the right type to use for boolean values in c?

812


Write a program for finding factorial of a number.

848