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
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.
What is #include in c?
Is c is a low level language?
What is structure in c explain with example?
Where is c used?
how to create duplicate link list using C???
What is sizeof array in c?
What are high level languages like C and FORTRAN also known as?
What are the types of i/o functions?
Can you please explain the difference between strcpy() and memcpy() function?
Can we initialize extern variable in c?
How do I send escape sequences to control a terminal or other device?
Why dont c comments nest?
Give differences between - new and malloc() , delete and free() ?
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'); }