byte test[4];
memset(test,0x00,4);
test[]={0xb4,0xaf,0x98,0x1a};
the above code is giving me an error expected primary-expression before ‘]’ token.
can anyone tell me whats wrong with this type of assignment?
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.
What Ben and Chris are saying is.
If you want to do it at run time, you can use memcpy to do the job.