Answer:
void doublelt(int *number)
{
*number=*number*2;
}
Explanation:
This exercise is for you to learn and understand the PASS BY POINTER syntax. The importance of this is that if you didnt use a pointer you would have to RETURN an int from the function. in that case the code would be:
int doublelt(int number)
{
number=number*2;
return number;
}
Passing by pointer manipulates the value by going inside the memory and where it resides. Without the pointer, the function would create COPIES of the argument you pass and delete them once the function ends. And you would have to use the RETURNED value only.
Technological improvements allow me to have greater access to goods around the world. I can buy instantly and communicate instantly with producers. Technology can also help me to monitor economic trends, both in my country and in my own life. In summary, technology helps to give me more freedom to make economic choices.
On e2020
Suppose that you have the following definitions:struct time Type struct tourTypen the variable destination of type your type are tourType input(){cout<<"Enter the city, distance and time in hr and min"<>destination.city name;
<h3>What is C++ statements?</h3>
Expression statements. These statements examine an expression for its aspect outcomes or for its go-back value. Null statements. These statements may be supplied in which a declaration is needed with the aid of using the C++ syntax however in which no motion is to be taken.
- #include
- #include
- the use of namespace std;
- struct timeType
- ;
- struct tourType
- ;
- tourType destination;
- tourType input(){
- cout<<"Enter the city, distance and time in hr and min"<>destination.cityName;
- cin>>destination.distance;
- cin>>destination.travelTime.hr;
- cin>>destination.travelTime.min;
- go back destination;
- }
- void display()cityName;
- d.distance = t->distance;
- d.travelTime.hr = t->travelTime.hr;
- d.travelTime.min = t->travelTime.min;">
- int main().
Read more about the variable :
brainly.com/question/2804470
#SPJ1
The OS shell allows access to the operating system services