What is the difference between const int *ptr and int const
*ptr???
Answer Posted / manjunath
a) const int *ptr and
b) int const *ptr
Both actually mean the same...
Read from Right to left:
for(a):-> ptr is a pointer to an integer Constant and
for(b):-> ptr is a pointer to a constant integer...
..............
int *const ptr----------> ptr is a constant pointer to an
integer...
| Is This Answer Correct ? | 95 Yes | 26 No |
Post New Answer View All Answers
What is the point of polymorphism?
Can bst contain duplicates?
What is an advantage of polymorphism?
What is difference between multiple inheritance and multilevel inheritance?
i got a backdoor offer in process global,Bangalore..Can i work with it?
What do you mean by overloading?
Can we override main method?
Why do we use polymorphism?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
Why do we use inheritance?
What are the three parts of a simple empty class?
Write a program to sort the number with different sorts in one program ??
Can we define a class within the interface?
Is abstract thinking intelligence?
What is encapsulation example?