what will be the output of this program
main()
{
int i=1;
while (i<=10);
{
i++;
}
}
Answer Posted / 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 |
Post New Answer View All Answers
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
What are the advantage of c language?
In a byte, what is the maximum decimal number that you can accommodate?
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
Difference between strcpy() and memcpy() function?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
Explain how many levels deep can include files be nested?
how can f be used for both float and double arguments in printf? Are not they different types?
What are local variables c?
What is difference between array and structure in c?
p*=(++q)++*--p when p=q=1 while(q<=6)
What is the explanation for cyclic nature of data types in c?
What is an identifier?
Do pointers take up memory?
Tell me with an example the self-referential structure?