Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Monday, March 16, 2015

What is arguments?

The information pass or sent by the program to a function at the time of function call is done by using arguments. The arguments are the data items that are sent to the function as a information at the time of calling. It is also called parameters.
The arguments must be enclosed in parentheses and separated by commas. The arguments can be constants, variable names, or more complex expressions. The arguments are defined at the time of function declared. Any number of arguments can be passed to a function being called.
There are two types of arguments:
  1. Formal arguments
  2. Actual arguments

Syntax:
return_type function_name (argumet1, argumet2,….);
Ex:
void sum( int x, int y);

     

No comments:

Post a Comment