What are the ways to pass the parameters?

Thê Hy

New member
What are the ways to pass the parameters?
Answer
There are two ways to pass parameters in C: Pass by Value, Pass by Reference.
  1. Pass by Value. Pass by Value, means that a copy of the data is made and stored by way of the name of the parameter. …
  2. Pass by Reference. A reference parameter “refers” to the original data in the calling function.
 

Tìm kiếm

Back
Top