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 program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
Explain the difference between ++u and u++?
How do you use a pointer to a function?
Why clrscr is used in c?
Is printf a keyword?
Explain enumerated types in c language?
With the help of using classes, write a program to add two numbers.
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
What are the uses of null pointers?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Suggesting that there can be 62 seconds in a minute?
What are pragmas and what are they good for?
What is bubble sort in c?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
What is a method in c?