What is the difference between std::vector and std::list
Answer / nashiinformaticssolutions
o Vector: Uses contiguous memory and supports random access.
o List: Uses linked nodes and is better for frequent insertions/deletions.
| Is This Answer Correct ? | 0 Yes | 0 No |
write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;
Explain the differences between list x; & list x();.
Explain overriding.
Write a C program to calculate the salary of each employee in your company. You need to input the hours worked and the hourly rate. The company pays 1.5 times the hourly rate for all hours worked in excess of 48 hours. Use the formulas below to calculate the salary: if employee worked less than 48 hours salary = hours * rate; if employee worked more than 48 hours salary = 48.0 * rate + ( hours − 48.0 ) * rate * 1.5; You are required to use a loop to produce the sample output as given below.
What is lambda expression c++?
What is function overriding?
What are libraries in c++?
What is the handle class?
Is arr and &arr are same expression for an array?
What is a parameterized type?
What is virtual base class?
What are the methods of exporting a function from a dll?