LogiQuest
Back to Arrays
9

What will be the output of the program?

#include <stdio.h>

int main(void) {
    int a[5] = {1, 2, 3, 4, 5}, i;
    for (i = 4; i >= 0; i--) printf("%d", a[i]);
    printf("\n");
    return 0;
}
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.