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

How can I swap two values without using a temporary?

1103


What is a example of a variable?

1015


Is python a c language?

1002


What are the general description for loop statement and available loop types in c?

1122


What is a built-in function in C?

1594


What does sizeof return c?

1061


What are the different file extensions involved when programming in C?

1257


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

1388


What is structure in c definition?

1044


I heard that you have to include stdio.h before calling printf. Why?

1063


Which is better pointer or array?

1024


What is derived datatype in c?

1090


What is a newline escape sequence?

1098


Explain what is wrong with this program statement?

1119


What is the purpose of ftell?

1078