1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
oee [108]
4 years ago
8

What is difference between actual parameters and formal parameters in java?​

Computers and Technology
2 answers:
Feliz [49]4 years ago
7 0
/ * The prototype of the function, here it is declared, only the data type of its parameters, name and return type are indicated. Now it will be visible anywhere in the program. * /
void function (int, double);

int main ()
{
int x = 10;
double y = 25.56;

function (x, y); // Call the function to which the actual parameters x and y are passed
return 0;
}

/ * Function definition. Contains formal parameters a and b. When the function is called, they will be replaced by the actual parameters, in this case x and y, respectively. * /
void function (int a, double b)
{
// The body of the function, contains the function code.
}
ratelena [41]4 years ago
5 0
1> the parameters used in prototypes and function definitions are called formal parameters and

2>those used in function calls are called actual parameters.actual parameters used in a calling statement may be simple constants.

EXAMPLE: int main()

{

int a,b,c;

int add(int,int);

c=add(a,b);//actual parameter printf("%d",c);

getch();

}

int add(int e,int f) //formal parameter { printf("enter the no");

scanf("%d%d",&e,&f);

return e+f;

}
Tell me if it works or did I explain it.
You might be interested in
Your users are calling the help desk, complaining that they are constantly losing work they have done on a document in Word. How
Natalka [10]

Listen to the story of what every had happening evaluate after learning what was happening to everyone, try to solve the problem.


Im not to sure how to explain this.

3 0
3 years ago
Read 2 more answers
When defining an array of class objects, how do you pass arguments to the constructor for each object in the array?
Nuetrik [128]
Basically, the array[ index ] is the name of the object so when you  populate the array you'd have statement[s] like:

array[ index ] = new ClassName( arg0, arg1, arg2 );
8 0
3 years ago
1. Trust can be built in a relationship if:
artcher [175]

Answer:

A

Explanation:

because if both parties feel safe communicating and feel understood by the other party they feel safe trusting the other person and it develops a trust worthy relationship

4 0
3 years ago
What shows the web address of the page that is currently displayed in the workspace?
babunello [35]

Answer:

In a web browser, the address bar (also location bar or URL bar) is a GUI widget that shows the current URL. The user can type a URL into the bar to navigate to a chosen website.

6 0
3 years ago
Read 2 more answers
Tricia is managing tasks that have been assigned to her. She needs to enter mileage information in relation to a
Lady bird [3.3K]

Answer:

Task

Explanation:

6 0
3 years ago
Read 2 more answers
Other questions:
  • To define a c-string that will store students' last names of up to 25 characters in length, which is an appropriate statement?
    9·1 answer
  • It is important that data being imported from a text file into access are separated by a character, such as a comma, which defin
    8·1 answer
  • 3 thing I learned in ICT
    7·1 answer
  • Do you think an employer can accurately judge an applicant’s skills and character by reviewing his/her job application? Why or w
    14·1 answer
  • A sequence of data values separated by commas can be made into a list by enclosing the sequence in what type of symbols?
    5·1 answer
  • Do you think you should learn to program? Why? why not?
    11·1 answer
  • Which among the following choices is correct based on the two statements listed below? Statement 1: When the lexical analyzer sc
    12·1 answer
  • Where is the best place to self learn c++ or c# that is free?
    6·2 answers
  • (03.04 MC) While working in a group, two members are not getting along. You ask each one what is happening, and they both say th
    7·2 answers
  • Please help me i’ll give you brainlist
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!