main()
{
intj;
while9j<=10)
{
printf("\n%d",j);
j=j+1;
}
}
Answers were Sorted based on User's Feedback
Answer / ritesh kumar
Since variable j is not initialised it will contain garbage
value hence the output(imposed on the while loop condition)
may be unexpected ..
| Is This Answer Correct ? | 13 Yes | 1 No |
How can I run c program?
What is the memory allocated by the following definition ? int (*x)[10];
How can I open files mentioned on the command line, and parse option flags?
What are the advantages of using Unions?
how to execute a program using if else condition and the output should enter number and the number is odd only...
What is the use of a semicolon (;) at the end of every program statement?
What is the purpose of type declarations?
diff .between strcture and union
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 is memory leak in c?
How do you use a pointer to a function?
Which is the memory area not included in C program? give the reason