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 a char in c?

930


What is keyword in c?

960


Where define directive used?

1031


What is void c?

1011


Explain the use of bit fieild.

1096


Who developed c language and when?

1006


difference between native and cross compilers

2078


Explain spaghetti programming?

1188


How do you determine the length of a string value that was stored in a variable?

1079


Explain how can you avoid including a header more than once?

1039


What are high level languages like C and FORTRAN also known as?

1105


How does free() know explain how much memory to release?

1011


develop algorithms to add polynomials (i) in one variable

2107


What is the value of c?

1007


What is the difference between c &c++?

1082