main()
{
intj;
while9j<=10)
{
printf("\n%d",j);
j=j+1;
}
}

Answers were Sorted based on User's Feedback



main() { intj; while9j<=10) { printf("\n%d",j); j=j+1; } }..

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 ?    12 Yes 1 No

main() { intj; while9j<=10) { printf("\n%d",j); j=j+1; } }..

Answer / sathsh

unexpected

Is This Answer Correct ?    2 Yes 3 No

main() { intj; while9j<=10) { printf("\n%d",j); j=j+1; } }..

Answer / soni

compile error

Is This Answer Correct ?    3 Yes 6 No

main() { intj; while9j<=10) { printf("\n%d",j); j=j+1; } }..

Answer / niranjan kumar niraj

output=9

Is This Answer Correct ?    0 Yes 9 No

Post New Answer

More C Interview Questions

what's the o/p int main(int n, char *argv[]) { char *s= *++argv; puts(s); exit(0); }

1 Answers   Motorola,


main difference between c and c++ language

1 Answers  


Differentiate between functions getch() and getche().

0 Answers  


What is volatile keyword in c?

0 Answers  


What are header files? What are their uses?

0 Answers  






What is pre-emptive data structure and explain it with example?

0 Answers  


what is the difference between entry control and exit control statement?

12 Answers   Darbari Lal DAV Model School,


main() { int a[3][4] ={1,2,3,4,5,6,7,8,9,10,11,12} ; int i, j , k=99 ; for(i=0;i<3;i++) for(j=0;j<4;j++) if(a[i][j] < k) k = a[i][j]; printf("%d", k); }

4 Answers   Vector, Wipro, Zoho,


What are the different data types in C?

0 Answers  


Explain what is wrong with this program statement? Void = 10;

0 Answers  


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

0 Answers  


What is difference between far and near pointers?

0 Answers  


Categories