what will be the output of this program
main()
{
int i=1;
while (i<=10);
{
i++;
}
}
Answers were Sorted based on User's Feedback
Answer / srikanth karnati
there is no output because there is no out statment
there.if write printf("%d",i);at out side the loop the
output will be 11.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / dharmendra kumar
It occurs a run time error function should return type.
If return type mentioned, after that nothing will print too, and loop will started infinite.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / aswini
answer will be 10.it will never execute the loop as there
is semicolon.hence directly 10 will be assigned to i.
| Is This Answer Correct ? | 1 Yes | 3 No |
Q-1: Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college.
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
What is getch() function?
Explain a pre-processor and its advantages.
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
Explain what’s a signal? Explain what do I use signals for?
what is constant pointer?
what are you see during placement time in the student.
0 Answers Goldman Sachs, TCS, Tech Solutions,
Develop a flow chart and write a c program to find the roots of a quadratic equation ax2+bx+c=0 using switch and break statement.
Explain the priority queues?
Write a C program to multiply tho numbers without using arithmetic operator (+, -, *, /).
Binary tree traversing