Differentiate between an array and a list?
No Answer is Posted For this Question
Be the First to Post Answer
Define macro.
What are the four partitions in which c++ compiler divides the ram?
What is problem with Runtime type identification?
class Alpha { public: char data[10000]; Alpha(); ~Alpha(); }; class Beta { public: Beta() { n = 0; } void FillData(Alpha a); private: int n; }; How do you make the above sample code more efficient? a) If possible, make the constructor for Beta private to reduce the overhead of public constructors. b) Change the return type in FillData to int to negate the implicit return conversion from "int" to "void". c) Make the destructor for Alpha virtual. d) Make the constructor for Alpha virtual. e) Pass a const reference to Alpha in FillData
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
advantages and disadvantages of using Borland C++ / version 5.
How to declare a pointer to an array of integers?
In inline " expression passed as argument are evalauated once " while in macro "in some cases expression passed as argument are evaluated more than once " --> i am not getting it plz help to make me understand....
0 Answers College School Exams Tests, CS,
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 "map" in STL?
How would you use qsort() function to sort an array of structures?