char* ptr = "Rahul";
*ptr++;
printf("%s",ptr);
What will be the output
Answer Posted / sudeep dutta
Rahul loses his name and becomes ahul.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
how to get the oracle certification? send me the answer
What is object in oops?
What is the problem with multiple inheritance?
What causes polymorphism?
What do you mean by Encapsulation?
What are two types of polymorphism?
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
Can main method override?
Why is polymorphism important in oop?
What is the purpose of enum?
Can enum be null?
#include
What are the benefits of polymorphism?
Can private class be inherited?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }