*(int *)CV = (int)0;
I was looking at a C code and can’t understand this line of code. Could you interpret this and explain what it does?
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.
It casts
CVto a pointer to anint, dereferences said pointer, and assigns the pointed-tointthe value0.Here’s a demo. Also,
(int)0is the same as0in this situation, so that can be changed to make things a little simpler.