C Programming Main Method Multiple choice question

Exercise :: main method - General Questions

This section contains a lot of Question with answer and explanation.

1) What would be the output of the following program ?
                                                  

#include<stdio.h> int main(); void main() { printf("ptutorial"); }

A. Run time error
B. Compile error
C. No output
D. ptutorial

Answer:

Compile error

Option:

( B )


Explanation :

note: previous declaration of main was here