hi everybody!

I have doubt regarding C program structure in linux.

When I write code on windows platform then I have no need to write return type in prototype and it compile and run.....but when I run same code in linux platform them it give compile error which is as follow:

error: ISO C++ forbids declaration of ‘AAA’ with no type

whereas AAA is name of function.

Also there is no need of function prototype in windows but it give error when run on linux.

Can anybody explain me why this so???

and also explain me what should I kept in mind before coding in linux...

thanks in advanced...

Bargi