64 vs 32 bit code example
Example 1: 32bit or 64bit
grep flags /proc/cpuinfo
Explanation(only in linux):
Look for "lm" in the command output. If lm is found in the output, then the CPU is 64-bit. If you don't see lm or see i386, i486, i586, or i686 in the output, then the CPU is 32-bit. Below is an example output of the above line with lm in the information.
Example 2: what is the difference between 32 bit and 64 bit
Windows 10 64-bit is recommended if you have 4 GB or more RAM.
Windows 10 64-bit supports up to 2 TB of RAM, while Windows 10 32-bit can utilize up to 3.2 GB.
The memory address space for 64-bit Windows is much larger, which means, you need twice as much memory than 32-bit Windows to accomplish some of the same tasks.