C Programming Main Method Multiple choice question

Exercise : - Multiple Choice Question On C Programming, MCQ C Programming Main method

This section contains a lot of c programming question and answer with explanation on the topic main method. These question and answer are very much helpful for interview(campus interviews, walkin interviews, company interviews), competitive examination ,entrance test and placements. Each question having answer and explanation that would help you to understand easily. These question are designed from basic to advance level. So anyone can learn from here (beginner, fresher, engineering graduate, an experienced IT professional).

All the question of c programming are listed below on main method along with detailed explanation / solution and answer.

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