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 12245There 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 6125where 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 9729Hi 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.
1793
Explain the difference between abstract class and interface in c++?
Why do we use classes in programming?
What is advantage of inheritance?
Explain differences between alloc() and free()?
What is static variable and difference between(const char *p,char const *p,const char* const p).
Can comments be nested?
Write about c++ storage classes?
What is vector processing?
Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
What is pointer in oop?
How delete [] is different from delete?
Explain the static storage classes in c++.
What are references in c++?
hi all..i want to know oops concepts clearly can any1 explain??