this is my first attempt on methods and im new for c programming.im using the Cygwin compiler and here's what i did
I used netbeans 7.2 and compiled it using cygwin and im getting an error.any idea will be really helpful the file i saved is add.cCode:# include <stdio.h> int add(int x,int y) { int result =x+y; return result; } int main() { int sum=add(5,12); printf("The addition of 5 and 12 is %d.\n", sum); //printf(sum); return 0; }