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
Which binary signaling technique uses a scheme in which zero voltage represents a 0 bit and the voltage for a 1 bit does not dro
prisoha [69]

Answer:

In binary signaling, Non Return to Zero (NRZ) is the technique in which zero voltage is represented by 0 bit while high voltage is represented by 1 until the voltage level change from high to low.

Explanation:

There are different techniques to encode the signal for transmission between transmitter and receiver. These techniques includes return to zero, non return to zero. In return to zero technique, the if the voltage is high the signal will become 1 for half of the time period and then after half time period it return to 0.

In NRZ the signal is 0 if the voltage level is zero. In case of high voltage of the signal the binary bit remains 1 until the next zero voltage level arrive in the signal until the end of the time period of bit.

6 0
4 years ago
How is VoIP similar to traditional telephone services? How is it different?
Elis [28]

Answer:

Explanation::::::

5 0
3 years ago
Drag the tiles to the correct boxes to compete the pairs. Identify the types of chemical reactions occurring in the chemical equ
ioda

The question is incomplete. The complete question is :

Drag the tiles to the correct boxes to compete the pairs. Identify the types of chemical reactions occurring in the chemical equations.

combustion reaction , photosynthesis , respiration

water + carbon dioxide + sunlight → oxygen + glucose

methane + oxygen → water + carbon dioxide + heat

glucose + oxygen → carbon dioxide + water + energy

Solution :

The chemical reactions that is occurring in the following chemical equations are :

<u>Photosynthesis</u>

water + carbon dioxide + sunlight → oxygen + glucose

Plants uses the light energy from the sun in the presence of water and carbon dioxide produces food by the process of photosynthesis. It produces glucose and oxygen.

<u>Respiration</u>

glucose + oxygen → carbon dioxide + water + energy

The cellular respiration process produces ATP with the breakdown of the glucose and oxygen. During respiration process, carbon dioxide is obtained along with water and energy.

<u>Combustion reaction</u>

methane + oxygen → water + carbon dioxide + heat

Combustion reaction is a chemical reaction in which methane is the main ingredient. Combustion takes place as things burn in the presence to methane and oxygen to form carbon dioxide, water and heat.

8 0
3 years ago
How do you move a slide to another location in you your<br> presentation?
ludmilkaskok [199]

Answer: Literally click on it and hold, then just drag it to wherever you want it

Explanation: Hope this helped you

5 0
3 years ago
If a file is opened for reading and the file does not exist,what action is taken?
worty [1.4K]

Answer:

C)An error message is issued.

Explanation:

If we try to open a file for reading when that file does not exist, we will get an error message.

For example, in Java we will encounter a FileNotFoundException as in the code below:

       try {

           FileInputStream fis = new FileInputStream("myFile.txt");

           DataInputStream dis = new DataInputStream(fis);

           BufferedReader br = new BufferedReader(new InputStreamReader(dis));

           String str = null;

           while ((str = br.readLine()) != null) {

               System.err.println(str);

           }

       } catch (FileNotFoundException e) {

           e.printStackTrace();

       }

If the file myFile.txt does not exist we can expect to see an exception stack trace corresponding to FileNotFoundException.

8 0
4 years ago
Other questions:
  • i have a at&amp;t router and a 1000mbs Ethernet cable connecting from that to my net gear r7000 that can push +1000mbs. the cabl
    14·1 answer
  • Ex. Q about the crazy effects of complements/substitutes on a wide range of goods:
    7·1 answer
  • Dynamic addressing: __________.
    12·2 answers
  • The Monte Carlo method is commonly used to approximate areas or volumes of shapes. In this problem, we will use Monte Carlo to f
    12·1 answer
  • A file named "games.txt" exists and has 80 lines of data. You open the file with the following line of code.
    7·2 answers
  • You want to search for contacts in your email program. You enter the person’s first name and last name in the search box. You wa
    10·2 answers
  • Define stubs for the functions get_user_num() and compute_avg(). Each stub should print "FIXME: Finish function_name()" followed
    8·1 answer
  • Which three statements are true of lossless compression?
    6·1 answer
  • a _____ is a telecommunications network that connects users and their computers in a geographical area that spans a campus or a
    14·1 answer
  • One security component that doubles as a network component
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!