Addition of two numbers in C

Addition Operation in C

C Languages providing multiple operators to do mathematical operations.The addition operator(+) helps to perform the addition of two numbers.There are two numbers which stored in a two separate variables.Example A=5,B=6.Similarly the output of the addition will get stored in another variable.Here the output variable is C.

Expression for Addition: c = a + b

Implementation

Output:

Add two numbers using function in C programming

The num1 and num2 values are passed as arguments to the function addition( ).The sum of two numbers is stored in the variable result and returns the value to the function from where it gets called.

Output: