LogiQuest
Back to Arrays
13

What will be the output of the program?

#include <stdio.h>

int main(void) {
    int a[] = {2, 4, 6, 8};
    int *p = a;
    printf("%d\n", *(p + 2) + a[1]);
    return 0;
}
Easy

Discussion (0)

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

Log in to join the discussion.