Print the output: #include<stdio.h> int main(){ int a[] = {0,1,2,3,4}; int b[] = {10,20,30,40,50}; printf("%d", b[a[2]]); return 0; }

Print the output:

#include<stdio.h>
int main(){
    int a[] = {0,1,2,3,4};
    int b[] = {10,20,30,40,50};
    printf("%d", b[a[2]]);
    return 0;
}

From the BSCPLC Assistant Manager (CSE) December 2024 – Written (BUET) exam, question 3 of 4.

More from this paper