How do you invoke a base member function from a derived class in which you have not overridden that function?
No Answer is Posted For this Question
Be the First to Post Answer
Explain the concept of inheritance in C++.
What is the return value of the insertion operator?
What do you mean by a template?
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.
Write about all the implicit member functions of a class?
What is a vector c++?
What can I use instead of namespace std?
What is binary object model?
Which uses less memory? a) struct astruct { int x; float y; int v; }; b) union aunion { int x; float v; }; c) char array[10];
Do class declarations end with a semicolon?
Is dev c++ free?
1)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea += sizeof(int); } return 0; } 2)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea ++; } return 0; } The output of this two programs will be different why?