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


Please Help Members By Posting Answers For Below Questions

how to get the oracle certification? send me the answer

1658


What is abstraction with example?

597


What is the difference between a constructor and a destructor?

604


How does polymorphism work?

629


What are the 4 main oop principles?

670






What is static in oop?

585


What are the benefits of oop?

599


What does I oop mean?

609


What is difference between data abstraction and encapsulation?

610


What is encapsulation example?

543


What is overloading and its types?

608


How to use CMutex, CSemaphore in VC++ MFC

4323


Can a varargs method be overloaded?

613


What does and I oop mean in text?

615


what is the drawback of classical methods in oops?

2908