Skip to main content

Posts

Showing posts with the label function call by value

Accessing a function in C programming

                  A function can be called or accessed by specifying its name, followed by a list of arguments enclosed in parentheses and separated by commas. For example, add(a,b) to call a function to add two numbers. If function call doesn’t require any arguments, any empty pair of parentheses must follow the name of function. The arguments appearing in the function call are referred as actual arguments. In function call, there will be one argument for each formal argument. The value of each argument is transferred into the function and assigned to the corresponding formal argument. An example /* to find the greatest number among three numbers.*/        #include <stdio.h>        #include<conio.h>          int greater(int x, int y)    /* function definition*/       ...