Difference between const char* p and char const* p?
There is no difference between const char *p and char const *p as both are pointer to a const char and position of '*'(asterik) is also same. 2. char *const ptr : This is a constant pointer to non-constant character. You cannot change the pointer p, but can change the value pointed by ptr.
Is This Answer Correct ? | 0 Yes | 0 No |
Define a way other than using the keyword inline to make a function inline?
What is c++ vb?
What is heap sort in c++?
What do you mean by enumerated data type?
Can you pass an array to a function in c++?
A milk carton can hold 3.78 litres of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one litre of milk is $0.38, and the profit of each carton of milk is $0.27. Write a C++ program that prompts the user to enter the total amount of milk produced in the morning. Then display the number of milk cartons needed to hold milk, the cost of producing milk, and the profit for producing milk.
What is a syntax in c++?
What is the main purpose of c++?
Explain the different access specifiers for the class member in c++.
Why pointer is used in c++?
In java a final class is a class that cannot be derived. How can you make a similar class in C++
List the merits and demerits of declaring a nested class in C++?