How can a '::' operator be used as unary operator?
Answer / subham chaudhary
The scope operator can be used to refer to members of the global namespace. Because the global namespace doesn’t have a name, the notation :: member-name refers to a member of the global namespace. This can be useful for referring to members of global namespace whose names have been hidden by names declared in nested local scope. Unless we specify to the compiler in which namespace to search for a declaration, the compiler simple searches the current scope, and any scopes in which the current scope is nested, to find the declaration for the name.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is difference between class and structure in c++?
Describe the main characteristics of static functions?
Are iterators pointers?
What kind of problems can be solved by a namespace?
What is the role of copy constructor in copying of thrown objects?
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 the difference between static global and global ?
Does defining a function inline mean that it wont push and pop things on/off the stack ...like parameters and the return the address??
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list
Explain the extern storage classes in c++.
write a program in c++ to implement stack using functions in header file stack.h
Generally variables are stored in heap memory. When he variables are created in stack?