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...

main()
{
char *ptr = "Ramco Systems";
(*ptr)++;
printf("%s\n",ptr);
ptr++;
printf("%s\n",ptr);
}
Find the Outputs?

Answer Posted / dhakchin moorthy.p

first printf stmt prints Ramco Systems
the error is in line ptr++;here u r trying to increment the
address holding by the pointer,pointer var may lost the
starting address.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the advantage of using #define to declare a constant?

1099


Define the scope of static variables.

1134


Explain modulus operator. What are the restrictions of a modulus operator?

1022


Why n++ execute faster than n+1 ?

3024


What is class and object in c?

1124


What is dangling pointer in c?

1247


please explain every phase in the "SDLC" in the dotnet.

2624


What is graph in c?

1063


What is the difference between char array and char pointer?

1064


What are the c keywords?

1207


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1729


What is struct node in c?

1081


What would be an example of a structure analogous to structure c?

1002


What is the use of sizeof?

1022


Are there constructors in c?

1016