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 are objects in oop?
What is the purpose of enum?
Can abstract class have normal methods?
What is polymorphism and why is it important?
Why multiple inheritance is not allowed?
Why is oop useful?
What is the renewal class?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
What is oops with example?
What is protected in oop?
What is encapsulation in oop?
What are oops methods?
Why we use classes in oop?
write a program that takes input in digits and display the result in words from 1 to 1000