Answer to Question #274625 in C++ for khan

Question #274625

What is a token? Differentiate between a for loop and a while loop? What are it uses?


1
Expert's answer
2021-12-04T01:28:02-0500


A token is a basic component of a source code.

The difference between a for loop and a while loop is that in for loop, the number of iterations are known because they are stated in the condition while in while loop, the number of iteration is not known, the program runs until a condition is met. The use of loops is that they are used to execute a block of code multiple. times


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment