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

List the difference between a 'copy constructor' and a 'assignment operator' in C?

1141


Explain what is the best way to comment out a section of code that contains comments?

1189


What are multidimensional arrays?

1171


Differentiate between ordinary variable and pointer in c.

1253


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

1305


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1993


What is the -> in c?

1066


What are global variables and how do you declare them?

1173


Write a program to reverse a given number in c?

1080


Explain how do I determine whether a character is numeric, alphabetic, and so on?

1182


what is bit rate & baud rate? plz give wave forms

2028


how to write optimum code to divide a 50 digit number with a 25 digit number??

3301


How can I get random integers in a certain range?

1127


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1768


Why is c so powerful?

1164