Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. void my_function(float (*foo)[5]) {
  2.   std::cout << **foo /* note two dereferences */
  3.     << std::endl;
  4. }
  5.  
  6. int main() {
  7.   float foo[5];
  8.   foo[0] = 1.23;
  9.   my_function(&foo);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement