|Feb 6, 2013, 04:47 PM||#1|
arrays of structs
if maxes is a ** to a struct and sys is a * to the same type of struct
can I do this
maxes = sys?
The answer seems to be yes because I tested it but I not sure why. Haven't I violated some pointer rule?
|Feb 6, 2013, 07:04 PM||#2|
You've posted theoretical code which won't compile. Post a real example and maybe we can answer. Keep in mind that you can assign pointers around all you want. But the compiler will not copy entire arrays using an assignment statement.
|Feb 7, 2013, 01:47 PM||#4|
Note that a function pointer is one pointer type you should obviously never treat as a pointer to an array.
You got to be a spirit. You can't be no ghost.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|arrays? subview or submenu?||tacotester1||iPhone/iPad Programming||6||Mar 14, 2014 08:06 PM|
|Please Help with arrays||Bigred101||Mac Programming||7||Mar 13, 2014 07:39 PM|
|Structs and Functions or Classes and Methods?||ArtOfWarfare||iPhone/iPad Programming||6||Mar 21, 2013 08:27 PM|
|Structs and Enum problems||nashyo||iPhone/iPad Programming||5||Sep 9, 2012 01:19 PM|
|Comparing Two Arrays||Ides||iPhone/iPad Programming||5||Aug 10, 2012 03:56 PM|
All times are GMT -5. The time now is 05:50 AM.