Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are objects in oop?

1041


What is the purpose of enum?

967


Can abstract class have normal methods?

993


What is polymorphism and why is it important?

984


Why multiple inheritance is not allowed?

1081


Why is oop useful?

1037


What is the renewal class?

2692


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

2078


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

2143


What is oops with example?

999


What is protected in oop?

1013


What is encapsulation in oop?

990


What are oops methods?

947


Why we use classes in oop?

979


write a program that takes input in digits and display the result in words from 1 to 1000

2372