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

Answer Posted / anu

Then y will point to next memory location.
If we are using (*y)++ will increment value to 24.

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can class objects be passed as function arguments?

597


what are the decision making statements in C++? Explain if statement with an example?

650


What are disadvantages of pointers?

561


What is the full form of stl in c++?

669


What are the advantages of using pointers in a program?

673






In a function declaration what does extern means?

590


what is c++

1793


What is prototype in c++ with example?

556


Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).

627


What are dynamic type checking?

608


Are strings mutable in c++?

688


What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?

601


Why we use #include conio h in c++?

587


What is c++ good for?

580


What is abstraction in c++?

672