Write C program to find sum of two numbers using #include Directives. Note: Use header file ADD.h in main program and call the function int sum(a,b).
In the ADD.h file
int sum(int a, int b){
return a + b;
}
In the main file
#include<stdio.h>
#include "ADD.h"
int main(){
printf("The sum is\t%d", sum(8,5));
}
Comments
Leave a comment