224k views
3 votes
Describe how you can use multiple arguments in a method.

User Ymz
by
8.0k points

1 Answer

5 votes

Answer:

name(argument_1, argument_2, argument_3,.......);

Step-by-step explanation:

The function is a block of the statement which performs the special task.

Syntax for calling the function:

name(argument_1, argument_2, argument_3,.......);

we write the name of the function and passed the arguments.

we can pass any number of arguments with separator ',' in the function calling.

for example:

1. print(name, value, count, a, b);

2. print(name, value);

Here, name, value, count,a and b are the arguments of the function.

if we does not pass any argument, the function still valid in the programming.

we can pass from Null to any number of argument.

User Moaz  Mabrok
by
7.7k points