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
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
Explain the meaning of keyword 'extern' in a function declaration.
What is putchar() function?
What is the right type to use for boolean values in c?
Is linux written in c?
How to write a code for reverse of string without using string functions?
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
How can I determine whether a machines byte order is big-endian or little-endian?
How do you redirect a standard stream?
What is wrong with this declaration?
show how link list can be used to repersent the following polynomial i) 5x+2
Differentiate between a for loop and a while loop? What are it uses?
Is file a keyword in c?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
How can I read data from data files with particular formats?