What is the output of this program? [code] #! /usr/bin/awk -f BEGIN { for(i=0;i<=5;i++) { print i i++

Minh Phượng

New member
What is the output of this program?
Code:
   #! /usr/bin/awk -f
   BEGIN {
       for(i=0;i<=5;i++) {
           print i
           i++
       }
   }
A. 0,2,4 will print
B. 1,3,5 will print
C. 1,2,3,4,5 will print
D. syntax error because i is not initialised
 

Tìm kiếm

Back
Top