Snapshot gcc-12-20231222 is now available on
https://gcc.gnu.org/pub/gcc/snapshots/12-20231222/
and on various mirrors, see https://gcc.gnu.org/mirrors.html for details.
This snapshot has been generated from the GCC 12 git branch
with the following options: git://gcc.gnu.org/git/gcc.git branch
On Fri, Dec 22, 2023 at 1:54 PM Olavi Esker via Gcc wrote:
>
> Hello,
>
> #include
> #include
>
> int main()
> {
> std::int8_t myInt{65};
> myInt += 1;
> std::cout << myInt;
> }
>
> Guess what this returns?
> Character "B".
>
> int main()
> {
> std::int8_t myInt{};
> std::cin >> myInt;
> std::co
Hello,
#include
#include
int main()
{
std::int8_t myInt{65};
myInt += 1;
std::cout << myInt;
}
Guess what this returns?
Character "B".
int main()
{
std::int8_t myInt{};
std::cin >> myInt;
std::cout << myInt;
}
This will also read a character, and
print the characters ascii value.
So if I give