Skip to content
Related Articles

Related Articles

Improve Article

Algorithms Quiz | SP2 Contest 1 | Question 12

  • Last Updated : 28 Aug, 2018

What will be the output of the below C program?




#include <stdio.h>
      
int main()
{   
    while()
        printf("Hello Inner Geek\n");
    printf("Hello Outer Geek\n");
  
    return 0;
}

(A) Hello Outer Geek
(B) Hello Inner Geek
Hello Outer Geek
(C) Compilation Error
(D) Hello Inner Geek


Answer: (C)

Explanation: Missing condition expression for while loop.

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :