STL (140)
OOPS (873)
C++ General (2409) 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.
1 13086There are 2 classes defined as below public class A { class B b; } public class B { class A a; } compiler gives error. How to fix it?
3 7500where is memory for struct allocated? where is memory for class-object allocated? I replied for struct in stack and for class-object in heap. THen he asked if class has struct member variable what happens.class on heap and what about struct in that class? couldnt ans :( :-?
2 10744Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
2198
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
Is react oop?
Name four predefined macros.
What is the main purpose of c++?
Can I learn c++ without c?
Differentiate between a pointer and a reference with respect to c++.
What is abstraction and encapsulation?
What are built-in functions? What is the syntax for the definition?
is there any choice in opting subjects like 4 out of 7
What are the various oops concepts in c++?
Can we use struct in c++?
Is java a c++?
What new()is different from malloc()?
Which programming language's unsatisfactory performance led to the discovery of c++?
What is c++ runtime?