# C program to find the difference of two numbers

This program will find the **difference of two integer numbers**. **Difference** is quite different from subtraction, in subtraction we just subtract second number from first number and here **to get difference we will subtract smallest number from largest number**, so that we can get correct **difference** of them.

## Difference of two integer numbers program

Output## Using

abs()– A Shortest way to finddifference of two numbersBy using abs() function we can get the difference of two integer numbers without comparing them, abs() is a library function which is declared in stdlib.h –

.This function returns the absolute value of given integerConsider the example

need an explanation for this answer? contact us directly to get an explanation for this answerOutput