What happens when >> operator is trying to input a value bigger than a variable can contain?

前端 未结 3 952
花落未央
花落未央 2021-01-19 16:05

I\'m pulling numbers from a text file and filling an array of type int with them.

I\'m inserting the values into the array while looping through the .txt file with t

3条回答
  •  执笔经年
    2021-01-19 16:16

    Undefined behaviour. Arithmetical overflow may be silently ignored or may cause a signal to be raised which terminates the program, depending on quality of implementation.

提交回复
热议问题