char* ptr = "Rahul";
*ptr++;
printf("%s",ptr);
What will be the output
Answer Posted / amit
Ans: ahul
Reason:
Initially character pointer ptr pointed to the first character
of Rahul..when we increase it by increament operator it increase one byte.because size of character is one bye..
now it point to a..
we print from here
therefore we got above answer
so
Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
Can you explain polymorphism?
What is class and object in oops?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
What do you mean by abstraction?
How to use CMutex, CSemaphore in VC++ MFC
What are main features of oop?
what is the sylabus for priliminaries?
Is this job good for future? can do this job post grduate student?
Why multiple inheritance is not allowed?
What is purpose of inheritance?
Get me an image implementation program.
What is encapsulation with real life example?
What is ambiguity in inheritance?
When not to use object oriented programming?
What is polymorphism what is it for and how is it used?