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
What does char * * argv mean in c?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
Describe newline escape sequence with a sample program?
Explain what is wrong with this program statement? Void = 10;
Why isn't any of this standardized in c? Any real program has to do some of these things.
Is c dynamically typed?
Is using exit() the same as using return?
Explain pointers in c programming?
Can we increase size of array in c?
Can we change the value of constant variable in c?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What is 02d in c?
What is the difference between āgā and āgā in C?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
Can two or more operators such as and be combined in a single line of program code?