What is the difference between int main and int void?

1 answer

Answer

1074729

2026-09-06 20:35

+ Follow

int main() refers that main function returns an integer value, where the integer value represent the program execution status. This status value is sent to the Operating System. If you follow strictly follow the rules, then it should be int main not void main()

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.