typedef struct stack{
int size;
int array[30];
}STACK;
int p;
STACK *W;
What is the difference between (*W).array and (*W).array[0]?
How do I get an int pointer to the first element in the array if I have W and p?
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.
W->arrayis an array andW->array[0]is an element.Don’t know what you want to do with
pbutW->arrayalready decays to a pointer to the first element. However, if you want, say, the fifth element: