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
Why is polymorphism needed?
How do you use inheritance in unity?
State what is encapsulation and friend function?
How to call a non virtual function in the derived class by using base class pointer
What is the main feature of oop?
Why do while loop is used?
Why is abstraction needed?
What is the real time example of encapsulation?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
What is a class oop?
What is a class in oop?
class type to basic type conversion
Why do pointers exist?
to find out the minimum of two integer number of two different classes using friend function
How many human genes are polymorphic?