@ Silvio > Try two tests:
>$ echo -e '#include <stdio.h>\nint main(){printf("size of float: %zu\\n", sizeof(float));return 0;}' > fredvs.c && gcc -o fredvs fredvs.c && clear && ./fredvs # it prints "size > of float: 4" on your terminal ==> size of float: 4 > $ echo "program fredvs;begin writeln('sizeof double: ', > sizeof(double));writeln('size of single: ', sizeof(single));end." > fredvs.pp && fpc fredvs.pp && clear && ./fredvs # it prints "sizeof > double: 8" and "size of single: 4 ==> sizeof double: 8 size of single: 4 Indeed, not the same. @ Sven. Many thanks for your tips. I will study it deeply and see (+understand) what is wrong in my code. The most strange is that with my code it is working perfectly. Fre;D ----- Many thanks ;-) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Array-as-result-in-function-tp5727366p5727390.html Sent from the Free Pascal - General mailing list archive at Nabble.com. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal