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
Which software is used for c++ programming?
Is eclipse good for c++?
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
Difference between a homogeneous and a heterogeneous container
Why are pointers used?
Differentiate between a constructor and a method in C++.
Which should be more useful: the protected and public virtuals?
What is the most useful programming language?
Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement
What is the this pointer?
Is multimap sorted c++?
Is c++ slower than c?
How much maximum can you allocate in a single call to malloc()?
What does new return if there is insufficient memory to make your new object?
What is do..while loops structure?