Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
239 B
1
Indexable
Never
#include <iostream>

void print(int arr[]) {
    int size = sizeof(*arr) / sizeof(int), b = 0;
    for (int i = 0; i < size; i++) {
        b++;
    }
    std::cout << b;
}

int main() {
    int arr[5] = {435,76,1,75, 4};
    print(arr);
}
Leave a Comment