Welcome to Westonci.ca, your ultimate destination for finding answers to a wide range of questions from experts. Join our platform to connect with experts ready to provide accurate answers to your questions in various fields. Discover in-depth answers to your questions from a wide network of professionals on our user-friendly Q&A 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 your visit. We are dedicated to helping you find the information you need, whenever you need it. Your visit means a lot to us. Don't hesitate to return for more reliable answers to any questions you may have. Thank you for visiting Westonci.ca. Stay informed by coming back for more detailed answers.