15 lines
279 B
C++
15 lines
279 B
C++
#include <iostream>
|
|
|
|
void printArrayAtPosition(int *array, int index) {
|
|
if (array == nullptr) {
|
|
return;
|
|
}
|
|
if (index < 0) {
|
|
return;
|
|
}
|
|
|
|
std::cout << "size of array: " << sizeof(array) << std::endl;
|
|
std::cout << array[index] << std::endl;
|
|
}
|
|
|