Why does sum of two short variables cannot be short?

前端 未结 0 571
清歌不尽
清歌不尽 2020-12-20 01:07

Why does sum of two short variables cannot be short? Why we need to add int?

    {
      short a = 1;
      short b = 1;

      short c = a+b;

      System.o         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题