Discover a wealth of knowledge at Westonci.ca, where experts provide answers to your most pressing questions. Join our Q&A platform to connect with experts dedicated to providing precise answers to your questions in different areas. Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields.
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 );
We hope our answers were useful. Return anytime for more information and answers to any other questions you have. We appreciate your visit. Our platform is always here to offer accurate and reliable answers. Return anytime. Thank you for trusting Westonci.ca. Don't forget to revisit us for more accurate and insightful answers.