Trying to learn C and doing my practice on the Code::Blocks 10.05. I get this error trying to compile the following simple code given in the book I am using.
#include <stdio.h>
int main()
{
int var1, var2;
int add_two_numbers ();
var1 = 1;
var2 = 53;
add_two_numbers (var1, var2);
add_two_numbers (1, 2);
exit(0);
}
add_two_numbers (int a, int b) /* Add a and b */
{
int c;
c = a + b;
printf ("%d\n", c);
}
Any advise as what am I doing wrong?