I have a really simple question.
Is it possible to do this?
Because in my program i get rubbish when i print Examplearray[b]Code:Examplearray1[a] = Examplearray2[b]
This is a discussion on Really simple question within the C Programming forums, part of the General Programming Boards category; I have a really simple question. Is it possible to do this? Code: Examplearray1[a] = Examplearray2[b] Because in my program ...
I have a really simple question.
Is it possible to do this?
Because in my program i get rubbish when i print Examplearray[b]Code:Examplearray1[a] = Examplearray2[b]
The way you ask your question makes me suggest what you wanted was:
The source of an assignment always goes right of the operator, the target goes left of it.Code:Examplearray2[b] = Examplearray1[a]
Last edited by dennis.cpp; 12-09-2011 at 04:57 AM.
Hardware: Intel® Core™ i7-3630QM CPU @ 2.40GHz × 8
Operating system: Ubuntu GNOME 13.04 (Raring Ringtail) (64-Bit) / Linux 3.8.0-16.26 / GNOME 3.6.2
Compiler: gcc 4.7.3