What considerations do I need to do if I want my code to work correctly on both 32-bit and 64-bit platforms?
EDIT: Which areas should I observe, for example? printing lines / characters or using structures?
Parameters:
Enter the code in any language using a virtual machine (e.g. Java)
Enter the code in .NET and don’t target any particular architecture. The .NET JIT compiler will compile it for you in the correct architecture before running.
, ( , Java .Net ).
.
, ?
, , , :)
mozilla C faq
, ? , 32- .
- , 32- .
"-" . , - "C" "++" - , .. - .
, , # Java Scripting, JavaScript, Python PHP, -, , .
, , ++, C .
, , , 32- 2 ^ 32, 64- 2 ^ 64.
64- , . , , 32, 64, , 32- .
C (, , ++) sizeof malloc. , , 64- .
, , . ( , , , , , .)
, , , - , , , . , , , , .
, , , "int" ( ).
typedefs - , , 8- 64- , , C int .
- , - - , - , , , ( typedef.h ).