what will be the output of this program
main()
{
int i=1;
while (i<=10);
{
i++;
}
}
Answers were Sorted based on User's Feedback
Answer / srikanth karnati
there is no output because there is no out statment
there.if write printf("%d",i);at out side the loop the
output will be 11.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / dharmendra kumar
It occurs a run time error function should return type.
If return type mentioned, after that nothing will print too, and loop will started infinite.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / 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 |
Discuss similarities and differences of Multiprogramming OS and multiprocessing OS?
what is the difference between postfix and prefix unary increment operators?
Explain what are reserved words?
what is c
How can I find leaf node with smallest level in a binary tree?
Toggle nth bit in a given integer - num
progrem to generate the following series 1 12 123 1234 12345
What does != Mean in c?
create an SINGLE LINKED LISTS and reverse the data in the lists completely
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
void main() {int a[5],i,b=16; for(i=0;i<5;i++) a[i]=2*i; f(a,5,b); for(i=0;i<5;i++) printf("\n %d",a[i]); printf("\n %d",b); } f(int *x,int n,int y) { int i; for(i=0;i<n;i++) *(x+i)+=2; y=y+2; }wat r the errors in the prg.and improvise the prg to get o/p.?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?