char* ptr = "Rahul";
*ptr++;
printf("%s",ptr);
What will be the output
Answer Posted / sudeep dutta
Rahul loses his name and becomes ahul.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is polymorphism give a real life example?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What is the oops and benefits of oops programming?
What is new keyword in oops?
What exactly is polymorphism?
#include
What are two types of polymorphism?
What does oop mean in snapchat?
What is the fundamental idea of oop?
hi all..i want to know oops concepts clearly can any1 explain??
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
What is the main purpose of inheritance law?
How is class defined?
What is abstraction in oop with example?