c++ Programming Glossary: create_array
Differences between dynamic memory and “ordinary” memory http://stackoverflow.com/questions/1021138/differences-between-dynamic-memory-and-ordinary-memory an array int main int argc char argv int intarray create_array return intarray 0 int create_array int intarray 5 intarray 0.. char argv int intarray create_array return intarray 0 int create_array int intarray 5 intarray 0 0 return intarray What happens here.. 0 return intarray What happens here You return an array in create_array . In actuality you return a pointer which just points to the..
|