, #include , , //int add(int x, int y); // prototype not needed if function defined before it is called , /* , Prototypes are declarations of the function, , but they are only necessary to alert the compiler , about the existence of a function if we dont , want to go ahead and fully define the function. , If add were defined before it is used, , we could do away with the prototype-- , the definition basically acts as a prototype as well. , */ , , int add(int x, int y) // function , { , return x + y; , } , , , int main() , { , int a; , int b; , printf(DQEnter two numbers to be added:\nDQ); , printf(DQFirst number: DQ); , scanf(DQ%dDQ, &a); , printf(DQSecond Number: DQ); , scanf(DQ%dDQ, &b); , printf(DQ\nDQ); , printf(DQ%d + %d = %d\n\n\nDQ, a, b, add(a, b)); , } ,