Wednesday 27 May 2015

Q9,paper 2,j13. How many times the word ‘print’ shall be printed by the following program segment ?



for (i=1, i<=2,i++)
for (j=1,j<=2,j++)
for(k=1,k<=2,k++)
printf("print/n")
(A) 1
(B) 3
(C) 6
(D) 8.
Answer D.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.