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
What is the fundamental idea of oop?
What is a function in oop?
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
What is destructor example?
What is destructor oops?
What is multilevel inheritance in oop?
What is the difference between static polymorphism and dynamic polymorphism?
How oops is better than procedural?
Is react oop?
What is the diamond problem in inheritance?
How is polymorphism achieved?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
What is overloading and its types?
Where is pseudocode used?
What is abstraction and encapsulation?