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


Please Help Members By Posting Answers For Below Questions

Can you explain polymorphism?

868


What is class and object in oops?

865


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?

1932


What do you mean by abstraction?

851


How to use CMutex, CSemaphore in VC++ MFC

4565


What are main features of oop?

903


what is the sylabus for priliminaries?

1945


Is this job good for future? can do this job post grduate student?

1943


Why multiple inheritance is not allowed?

864


What is purpose of inheritance?

891


Get me an image implementation program.

1768


What is encapsulation with real life example?

813


What is ambiguity in inheritance?

883


When not to use object oriented programming?

810


What is polymorphism what is it for and how is it used?

813