A while loop checks the condition first before executing the content whereas do-while loop executes the content of the loop before checking the condition and makes obligatory to enter the loop at least once.
This blog provides some ready-made tips, tricks, tweaks & interview questions-answers on C, C++, Perl, Shell Scripting and UNIX Commands.
Wednesday, February 27, 2013
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment