Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void my_function(float (*foo)[5]) {
- std::cout << **foo /* note two dereferences */
- << std::endl;
- }
- int main() {
- float foo[5];
- foo[0] = 1.23;
- my_function(&foo);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement