|
|
#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? thanks |
|
|
|
0
|
|
|
#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.
|
|
|
|
0
|
|
|
#3 |
|
It does compile.
Anyway I've stop using that code. Thanks |
|
|
|
0
|
|
|
#4 | |
|
Quote:
Note that a function pointer is one pointer type you should obviously never treat as a pointer to an array.
__________________
Mr. Paul, sir, I thought you should be advised, there seems to be a zombie tribble clinging to your head, for it is scarfing your brain
|
||
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 09:38 AM.







Linear Mode
