Question: 1.What is the difference between prefix and postfix mode for the increment and decrement operators? Give examples of each. 2.How would you prevent infinite loops
1.What is the difference between prefix and postfix mode for the increment and decrement operators? Give examples of each.
2.How would you prevent infinite loops in a while loop statement? Give an example of an infinite while loop.
3.Give an example of a simple for loop.
4.What is a sentinel used for?
5.Give an example of the open member function to open a file.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
