I am working on porting c code to c++. The below C program compiles successfully. But in c++, it throws an error. I know its really basic thing. I've more than 100 functions declared in this way. Is there any flag we can add to compile successfully instead of modifying all the functions.
- OS: Windows
- IDE: Visual Studio
int sum(m,n)
int m,n;
{
return m+n;
}