char* ptr = "Rahul";
*ptr++;
printf("%s",ptr);
What will be the output
Answer Posted / deepak
Ans:Sahul
Reason:
Intially *ptr contains ASCII value of 'R' on incrementing it
will points to ASCII value of 'S'.
| Is This Answer Correct ? | 2 Yes | 15 No |
Post New Answer View All Answers
Why do we use encapsulation in oops?
What are different oops concepts?
What is stream in oop?
What is encapsulation and abstraction? How are they implemented in C++?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
What is the renewal class?
Why do we use polymorphism?
What is the oops and benefits of oops programming?
What is polymorphism give a real life example?
What is methods in oop?
What is class in oop with example?
Can a destructor be called directly?
How do you explain polymorphism?
Prepare me a program for the animation of train
Why do we use class?