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
Explain pointers in c programming?
Why static is used in c?
Can a void pointer point to a function?
What is the difference between mpi and openmp?
Is sizeof a keyword in c?
Can you think of a logic behind the game minesweeper.
What is a constant?
what is the structure pointer?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
How can I avoid the abort, retry, fail messages?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
Is there a way to switch on strings?
What is a string?
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
code for find determinent of amatrix