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 a varargs method be overloaded?
What is oops and why we use oops?
What are functions in oop?
What is variable example?
Is html an oop?
What is encapsulation with real life example?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
write a program to find 2^n+1 ?
What is overriding vs overloading?
What are the types of abstraction?
What does <> mean pseudocode?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
i got a backdoor offer in process global,Bangalore..Can i work with it?
What is multilevel inheritance explain with example?
What is overloading in oop?