What happens if the following program is executed in C and C++?


#include stdio.h
void func(void)
{
printf("Hello");
}
void main()
{
func();
func(2);
}

Posted on by