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
a c code by using memory allocation for add ,multiply of sprase matrixes
Is r written in c?
What is difference between && and & in c?
Is c language still used?
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
What do you mean by scope of a variable in c?
Why clrscr is used after variable declaration?
What does == mean in texting?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
Write a program to print numbers from 1 to 100 without using loop in c?
How can you find out how much memory is available?
What is the benefit of using const for declaring constants?
What do you mean by a local block?
What is the right type to use for boolean values in c?
Write a program for finding factorial of a number.