1 votes 1 votes what is the difference between *b[10] and (*b)[10] ? Programming in C programming-in-c + – _shashi asked Jan 27, 2018 _shashi 690 views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply gauravkc commented Jan 27, 2018 reply Follow Share int *b[10] -> b is an array of pointers to integer of size 10 int (*b)[10] -> b is a pointer to an array of 10 integers 2 votes 2 votes _shashi commented Jan 27, 2018 reply Follow Share thanks gauravkc but both will point to first element of array ? right ? 0 votes 0 votes Please log in or register to add a comment.
Best answer 2 votes 2 votes *b[10] : here every block of array is a pointerr.. (*b)[10] here b is variable which is a pointer and pointimg to an array of 10 size... hs_yadav answered Jan 27, 2018 • selected Jan 27, 2018 by joshi_nitish hs_yadav comment Share Follow See all 2 Comments See all 2 2 Comments reply _shashi commented Jan 27, 2018 reply Follow Share oh thanks but both will point to first element of array ? right ? 1 votes 1 votes Upasana singh commented Jan 27, 2018 reply Follow Share (*b)[10] will point only to the complete array *b will point to first element of array in this case. 0 votes 0 votes Please log in or register to add a comment.