Looking for answers? Westonci.ca is your go-to Q&A platform, offering quick, trustworthy responses from a community of experts. Our platform provides a seamless experience for finding reliable answers from a knowledgeable network of professionals. Get quick and reliable solutions to your questions from a community of experienced experts on our platform.
Sagot :
It is impossible to store numbers or contents of 2D array to a pointer array.
How to store pointers in 2D Arrays?
Arrays and pointers are different data structure elements, and there is a limit to the operations that can be performed on both.
Having said that, it is impossible to store numbers or contents of 2D array to a pointer array.
The closest you can do, is to use the following declaration:
int *p[] = {(array-type [][number of columns]) {Array-content}}
Read more about arrays and pointers at:
https://brainly.com/question/17355709
#SPJ1
Answer:
Get the element => *( (int *)aiData + offset ); calculate offset => offset = (1 * coloumb_number)+ 2); Add offset in array base address => (int *)aiData + offset; //here typecast with int pointer because aiData is an array of integer Get the element => *( (int *)aiData + offset );
Thank you for choosing our platform. We're dedicated to providing the best answers for all your questions. Visit us again. Thank you for visiting. Our goal is to provide the most accurate answers for all your informational needs. Come back soon. Westonci.ca is committed to providing accurate answers. Come back soon for more trustworthy information.