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...

If you had the following code: int x = 23; int *y; y = &x;
The instruction y++; does what?

Answer Posted / naresh kumar

here Y is integer pointer which is storing address of x.
suppose we assume address of X is 65524. this value will stored in pointer variable Y. int variable is capable of storing 2 bytes of memory. If increment or decrement variable Y, It points to next memory location, i.e 65526.

that means y=65524
y++
65526
y++
65528
this will keep on increasing by 2 bytes.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a constructor in c++ with example?

1133


What does flush do?

989


What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard

1032


Differentiate between the manipulator and setf( ) function?

1206


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

1095


Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?

1004


what are function pointers?

1060


What are built-in functions? What is the syntax for the definition?

1083


What is the object serialization?

1148


Define the process of handling in case of destructor failure?

1066


If a function doesn’t return a value, how do you declare the function?

1059


Can I learn c++ without learning c?

1008


When one must use recursion function? Mention what happens when recursion functions are declared inline?

1192


What do you mean by ‘void’ return type?

1060


Can a program run without main in c++?

1211