char* ptr = "Rahul";
*ptr++;
printf("%s",ptr);
What will be the output
Answer Posted / sayali
this code generates the output as,
ahul
but is also generate warning
that
code has no effect..
Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is abstraction in oops with example?
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.
What polymorphism means?
what are the different types of qualifier in java?
Why multiple inheritance is not allowed?
Why is there no multiple inheritance?
What is purpose of inheritance?
What is difference between abstraction and encapsulation?
How do you answer polymorphism?
What is encapsulation with real life example?
How can you overcome the diamond problem in inheritance?
What is object in oop with example?
What is difference between class and object with example?
What is cohesion in oop?
What is the importance of oop?