Answer to Question #217565 in C for a.s.vijay

Question #217565

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).


1
Expert's answer
2021-07-15T07:11:41-0400

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));
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS