Answers

Question and Answer:

  Home  Awk Programming

⟩ 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 c) 1 3 d) syntax error

b) 0 2

Output:

root@ubuntu:/home/google# ./test.awk

0

2

root@ubuntu:/home/google#

 143 views

More Questions for you: