#include "gc.h"
#include <stdio.h>
int main(int argc, char** argv) {
int i;
int * ary = GC_malloc(sizeof(int) * 10);
for (i = 0; i < 10; ++i) *(ary + i) = i;
for (i = 9; i >= 0; –i) printf("%d\n",*(ary + i));
return 0;
}
ary = Array.new
0.upto(9) {|i| ary[i] = i}
9.downto(0) {|i| puts ary[i] }
With that being said I picked up a Java book awhile back to get the basic concepts unique to that language as I am a beginner to programming, but I had also saw books on C++/Ruby/Python/and various other languages. My question to the Mudbytes community is what do you think a good language to start out with and learn?