Interview Questions   Tutorials   Discussions   Programs   Videos   

C++ - Char* ptr = "Rahul"; *ptr++; printf("%s",ptr); What will be the output?




359
views
asked marvit August 20, 2014 09:44 AM  

Char* ptr = "Rahul"; *ptr++; printf("%s",ptr); What will be the output?


           

1 Answers



 
answered By bhjahnavi   0  
an error occurs because pointer variables can not be incremented . so there won't be any output.
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert