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 / gangadhar

first time loop will satisfy and second time loop will
not satisfy bcoz x become zero....

Is This Answer Correct ?    0 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.

1770


What is #include in c?

592


Is c is a low level language?

555


What is structure in c explain with example?

627


Where is c used?

644






how to create duplicate link list using C???

2061


What is sizeof array in c?

588


What are high level languages like C and FORTRAN also known as?

675


What are the types of i/o functions?

671


Can you please explain the difference between strcpy() and memcpy() function?

593


Can we initialize extern variable in c?

626


How do I send escape sequences to control a terminal or other device?

602


Why dont c comments nest?

611


Give differences between - new and malloc() , delete and free() ?

601


What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

690