Answer:
#include <iostream>
#include <cstdlib>
using namespace std;
int* integerArr( int number);
int main(){
int* address;
address = integerArr(5);
for ( int i = 0; i < 10; i++ ) {
cout << "Address of the integer array: ";
cout << *(address + i) << endl;
}
return 0;
}
int* integerArr( int number){
int myArr[number];
for (int i = 0; i < number; ++i) {
myArr[i] = rand();
}
int* ptr= myArr;
return ptr;
}
Explanation:
The C++ source calls the defined pointer function "integerArr" with an integer argument to declare arrays of dynamic length, in the main function of the program and the items of the array are printed on the screen.
Answer:
no
Explanation:
Printer is a output device. It takes the input from the user and gives the output in the form of a texted document. It is called hard copy of our document. output device ... it takes input from computer and gives output in form of texted document or graphical document .
Answer:
Logic for a program
Explanation:
//Here ind = index
//declare the number
number ind
number sum
number avg
number SIZE = 20
number num[SIZE] = {0,0,0,0,0,0,0,0,0,0
,0,0,0,0,0,0,0,0,0,0}
getReady()
while ind < SIZE
getNumbers()
stop
getReady()
ind = 0
sum = 0
return
getNumbers()
cout<< “Enter a number for position ”, ind
input numbers[ind]
sum = sum + numbers[ind]
ind = ind + 1
return
;
finishUp()
avg = sum/SIZE
ind = 0
while ind < SIZE
output numbers[ind], avg – numbers[index]
ind = ind + 1
return
Modify the program in 2a
number index
number sum
number avg
number actualSize
number SIZE = 10
number number[SIZE] = 0
Yes it only processes data using 1s and 0s
The answer is
A. your information is more accurate and useful
I hope it helps you. Please mark me brainliest answer.