Saw this in an answer to another question:
char (*arrs)[rowSize] = malloc(bytesPerTable);
What is arrs? / why are there parentheses / what is the description of this declaration?
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.
int *a[10]– This means,ais an array of 10 elements and the element type isint *Size of variableawill be 40 bytes in 32 bit machine or 80 bytes in 64 bit machine.int (*a)[10]– This means,ais a pointer variable and its size will be 4 bytes(or 8 bytes), which can hold address of aintarray of size10like below.