for(i=1;i>0;i++);
printf("i=%d",i);
what will be the answer????
Answer Posted / ankit shekhavat
after for lop,there is a semicolon.it means loop terminate
here..condition inside the loop will always true.so it will
be an infinite loop..nothing will be printed on the screen.
for next statement there will be printed any garbage value...
| Is This Answer Correct ? | 7 Yes | 6 No |
Post New Answer View All Answers
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
Explain the advantages and disadvantages of macros.
How can I direct output to the printer?
What is strcmp in c?
What is the advantage of an array over individual variables?
How can I convert a number to a string?
Can you think of a logic behind the game minesweeper.
What is string concatenation in c?
what will be maximum number of comparisons when number of elements are given?
What are the 4 types of unions?
What is getch?
Is stack a keyword in c?
What is null pointer constant?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above