Small Details That Matters a Lot #1: Difference in the fun() and fun(void) in C and C++ ??

#include <stdio.h> 
void funtime(void)
{
printf("Hi Binod");
}
void main()
{
funtime();
funtime(3);
}
#include <stdio.h> 
void funtime() //here no argument(void) is defined
{
printf("Hi Binod");
}
void main()
{
funtime();
funtime(3);
}

Small Details That Matters a Lot #1: function() and function(void) is treated differently in the C compiler.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store