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 / sumeet

Samco Systems
amco Systems

this will be the answer .. the reason being the ascii value
of r will be incremented so it now point to s( capital s
that is ) this account for (*ptr)++

next ptr++ will simply move you to the next charachter ..

Is This Answer Correct ?    20 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know the difference between exit() and _exit() function in c?

1059


What is mean by data types in c?

1027


write a program to print largest number of each row of a 2D array

2323


How many levels of pointers have?

1040


Why is it usually a bad idea to use gets()? Suggest a workaround.

1778


What is the difference between single charater constant and string constant?

1083


What is the difference between char array and char pointer?

1046


what is the format specifier for printing a pointer value?

1016


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

1088


What is sorting in c plus plus?

972


Can an array be an Ivalue?

1089


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

2321


How would you use the functions fseek(), freed(), fwrite() and ftell()?

1161


Explain the difference between ++u and u++?

1130


Explain what header files do I need in order to define the standard library functions I use?

1169