What does this line mean? I havn’t done C in a few years. Does it perform the operation in parens then make the int result a pointer??
b[0] = *(start + pos++);
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.
Apparently
startis a pointer (or an array, which will decay to a pointer here anyway), which means that the result of the expression in()is a pointer, not anint. The*simply dereferences that pointer.The whole thing is equivalent to plain
b[0] = start[pos++], but for some reason some people prefer to use the obfuscated form as in your post.