char* ptr = "Rahul";
*ptr++;
printf("%s",ptr);
What will be the output
Answer Posted / vadivelt
Since address pointed by ptr got incremented, ptr will point to
address of char 'a'.
So o/p will be - ahul
| Is This Answer Correct ? | 73 Yes | 5 No |
Post New Answer View All Answers
What is an interface in oop?
What are the components of marker interface?
Write a c++ program to display pass and fail for three student using static member function
Are polymorphisms mutations?
What are the three main types of variables?
Why do we use class in oops?
What is class and object in oops?
What language is oop?
What is encapsulation oop?
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 is the difference between abstraction and polymorphism?
#include
What is the purpose of polymorphism?
What is polymorphism explain its types?
What is the difference between procedural programming and oops?