what diff betwean void main and main in c programe
65 Views|Posted 2013-01-02 10:35:36
Asked by Pawan Pawar
The question is closed for answering
1 Answer

Answered by
2013-01-02 10:47:46
main() is a function named main which takes any number of arguments and returns an int. main(void) is a function named main taking no arguments and returning an int.
Strictly speaking, ANSI defines main to be int main(int argc, char **argv), but allows main() (in C89 only -- discouraged), int main(
Taking an Exam? Selecting a College?
Get authentic answers from experts, students and alumni that you won't find anywhere else.
On Shiksha, get access to
66K
Colleges
|
1.2K
Exams
|
6.9L
Reviews
|
1.9M
Answers
Didn't find the answer you were looking for?
Search from Shiksha's 1 lakh+ Topics
or
Ask Current Students, Alumni & our Experts
Have a question related to your career & education?
or
See what others like you are asking & answering