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

What is the use of getchar() function?

1074


What is a structural principle?

1090


What are the types of c language?

976


Why c is called a mid level programming language?

1022


Did c have any year 2000 problems?

1062


The __________ attribute is used to announce variables based on definitions of columns in a table?

1131


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

1868


What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

994


What is the meaning of 2d in c?

1063


Why doesnt long int work?

980


What is the difference between local variable and global variable in c?

1163


Place the #include statement must be written in the program?

988


Why isn't it being handled properly?

1001


When we use void main and int main?

1017


How can I change their mode to binary?

1050