Add containers module with initial implementation and integrate into CMake build system.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user