Author Topic: Since when is an int a byte?  (Read 1429 times)

Offline Steven Friedrich

  • Single posting newcomer
  • *
  • Posts: 7
Since when is an int a byte?
« on: March 03, 2022, 05:52:12 pm »
I am starting a new console application using code::blocks and it gave me a main.c with hello world.
I changed the return to -1, compiled and ran it.  Here's the output in the terminal:
Hello world!

Process returned 255 (0xFF)   execution time : 0.001 s
Press ENTER to continue.

Why is it claiming the return code is a byte?  An int is 64 bits on x86_64 Linux.

Offline Commaster

  • Almost regular
  • **
  • Posts: 150
Re: Since when is an int a byte?
« Reply #1 on: March 03, 2022, 06:31:48 pm » Because that's how shell and processes work?