Addition of 2 Numbers using Function: C Program

preview_player
Показать описание

In this video tutorial lets learn how to add two integer numbers using functions in C programming language.

Here we call user defined function add from within printf() function. We pass 2 integer variables as argument to add method. The values of variable a and b are copied to variable x and y. Note that values of variable x and y are local to function add and main function do not know values of x and y. x and y are separate copy and altering which do not alter the value of variables a and b.

a and b are called actual arguments.
x and y are called formal arguments.

C Programming Interview / Viva Q&A List

C Programming: Beginner To Advance To Expert
Рекомендации по теме
Комментарии
Автор

Add three integer by using user_ define function?

goodgoodies
Автор

Sir is its a call by reference function?

tanhak.
Автор

Hlw sir plzzz tell me this que sir ... Create a program of add 4 numbers function in C this is my assignment so plzz tell me

riddlesdelight-rk