Vidyalelo
Computer Science · Q511

Linux

Engineering and GATE · Computer Science · question 511

Q511

What is the output of the program? #! /usr/bin/awk -f BEGIN a[1,1]=0 a[1,2]=1 a[2,1]=2 a[2,2]=3 for(i=1;i<3;i++) for(j=1;j<3;j++) print a[i,j]

A.
0 1 2 3
B.
0 2
Answer
C.
1 3
D.
syntax error

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board