What are the difference between reference variables and pointers in C++?
Pointers: A pointer is a variable that holds memory address of another variable. ... References : A reference variable is an alias, that is, another name for an already existing variable. A reference, like a pointer, is also implemented by storing the address of an object.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is stream and its types in c++?
Write a function to find the nth item from the end of a linked list in a single pass.
Can you pass an array to a function in c++?
Is c++ a low level language?
Which of the following is evaluated first: a) && b) || c) !
Does c++ have finally?
Write a program to find the Fibonacci series recursively.
What is type of 'this' pointer? Explain when it is get created?
What do you mean by pure virtual functions in C++? Give an example?
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 a constructor initializer list and when we use constructor initializer list?
Why isn't sizeof for a struct equal to the sum of sizeof of each member?