What is the function of the keyword ‘volatile’ in C++?
Answer / nashiinformaticssolutions
A qualifier known as the volatile keyword can be used on a variable to let the compiler know that the value of the variable could change at any time. The primary goal of utilizing volatile is to stop source code optimizations on objects.
| Is This Answer Correct ? | 0 Yes | 0 No |
Define a nested class.
What is the difference between map and hashmap in c++?
Why do we use iterators?
What is fixed in c++?
What is the difference between public, private, protected inheritance?
Differentiate between realloc() and free().
What is the difference between struct and class?
What is DlgProc?
When must you use a pointer rather than a reference?
Define a pdb file.
A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a saleperson who sells $5000 worth of merchandise in a week receives $200 plus 9 percent of $5000, or a total of $650. You have been supplied with a list of items sold by each salesperson. The values of these items are as follows: Item Value A 239.99 B 129.75 C 99.95 D 350.89 Write a program that inputs one salesperson's items sold in a week (how many of item A? of item B? etc.) and calculates and displays that salesperson's earnings for that week.
How do c++ struct differs from the c++ class?