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


Please Help Members By Posting Answers For Below Questions

What is abstraction in oops with example?

765


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.

622


What polymorphism means?

614


what are the different types of qualifier in java?

1833


Why multiple inheritance is not allowed?

581






Why is there no multiple inheritance?

562


What is purpose of inheritance?

638


What is difference between abstraction and encapsulation?

584


How do you answer polymorphism?

575


What is encapsulation with real life example?

564


How can you overcome the diamond problem in inheritance?

761


What is object in oop with example?

688


What is difference between class and object with example?

558


What is cohesion in oop?

611


What is the importance of oop?

605