【问题标题】:How the range is effect by using {}? [closed]使用 {} 如何影响范围? [关闭]
【发布时间】:2022-06-12 20:08:24
【问题描述】:
float a = 1234567890123456778; // not error
              vs
float a = {1234567890123456778}; // narrowing conversion of '1234567890123456778' from 'long long int' to 'float' inside { } 

为什么相同的东西但使用 {} 会出错?

【问题讨论】:

  • 什么编程语言?什么编译器?
  • C++ , GCC 编译器

标签: c++ floating-point


猜你喜欢
  • 2016-10-11
  • 2019-06-27
  • 1970-01-01
  • 2018-11-28
  • 2021-05-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多