how to check if ubuntu is 32 or 64 bit

C++
# Type The following command in the terminal 
# and Read the Architecture and CPU op-mode(s)
lscpu
Source

Also in C++: