Examveda
Examveda

What is the output of this program?
#! /usr/bin/awk -f
BEGIN {
    a=0
    do {
        print "example"
        a++
    } while (a<5)
}

A. "example" will print 4 times

B. "example" will print 5 times

C. nothing will print

D. syntax error

Answer: Option B


This Question Belongs to Computer Science >> Linux

Join The Discussion

Related Questions on Linux