99 : Difference of two numbers using subtract function.

Check out the complete list of c-programs : C Program List    












/*
 ============================================================================
 Name        : C-Programming
 Author      : Code2care
 Version     : 1.0
 Copyright   : Code2care.org
 Description : 99 : Difference of two numbers using subtract function
 ============================================================================
 */

#include 
#include 

int main(void) {

	int subtract(int, int);

	int a, b;

	printf("Enter no. A : ");
	scanf("%d", &a);

	printf("\nEnter no. B : ");
	scanf("%d", &b);

	printf("\nDifference of  %d - %d =  %d ", a, b, subtract(a, b));

	return 0;
}


//subtract function

int subtract(int a, int b) {

	return a - b;
}









The best way to learn C programming is to practice more and more of programs . Code2care C Programming tutorials provide 1000+ programs in C that you can study and become an expert in the language. Programs are divided into categories depending upon type and complexity.

BSc. IT, BSc. Computer Science, BSc. IT, MSc. IT, MSc. Computer Science, MCA, BTech IT & BTech Engineers may find these programs very useful.