🎒Array

Example: Array Declaration and Traversal

#include <stdio.h>

int main() {
    int arr[5] = {1, 2, 3, 4, 5};
    for(int i = 0; i < 5; i++) {
        printf("%d ", arr[i]);
    }
    return 0;
}

Last updated

Was this helpful?