Assume A is a user-defined type.
A ob1;
A ob2 = (A&) ob1;
What is now ob2?
I saw the above code in a project, and I was wondering what is the purpose of it. Is it a faster way to copy the object?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The cast is meaningless. A copy of the object is still made in the same way.