Planetary Makerspace @ MSU
People
Teaching
The Dynamic Earth
Exploration of the Solar System
Cosmochemistry
Planet Formation and Evolution
Solar System Dynamics
Research
Research Updates
Mentoring
Press
Opportunities
In the Planetary Makerspace Group
For Planetary Science Internships
For Planetary Science Fellowships
Publications
CV
Contact

Seth A. Jacobson

Planetary Makerspace @ MSU
People
Teaching
The Dynamic Earth
Exploration of the Solar System
Cosmochemistry
Planet Formation and Evolution
Solar System Dynamics
Research
Research Updates
Mentoring
Press
Opportunities
In the Planetary Makerspace Group
For Planetary Science Internships
For Planetary Science Fellowships
Publications
CV
Contact
Seth Jacobson
April 24, 2016

Passing arrays in C++

Seth Jacobson
April 24, 2016

There are three ways to pass an array to a function in C++:

`void by_value(const T* array) // const T array[] means the same

void by_pointer(const T (*array)[U])

void by_reference(const T (&array)[U])`

Source

Newer PostRunning Mathematica scripts from command line
Older PostPreparing asteroidbelt files
 
Back to Top
Michigan State University, 288 Farm Lane, East Lansing, MI, 48824, United States+1(517)355-1941seth@msu.edu