Definitely better.
Is it standard - well, "gcc -Wall -ansi -pedantic -O2" gives no errors/warnings indicating non-standardness, so that's a good sign. You do have some warnings, but that's...
Type: Posts; User: matsp
Definitely better.
Is it standard - well, "gcc -Wall -ansi -pedantic -O2" gives no errors/warnings indicating non-standardness, so that's a good sign. You do have some warnings, but that's...
And how to solve it is in the FAQ How do I ... (Level 2):
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1044873249&id=1043284392
--
Mats
Aside from things that are definitely depending on undefined behaviour (that is for example using uninitialized variables),
In main:
integers = ptr;
Does absolutely nothing meaningful,...