• 练习2.3 读程序写结果


    1 unsigned int u=10,u2=42;
    2 std::cout<<u2-u<<std::endl;
    3 std::cout<<u-u2<<std::endl;

    结果为:1)32;

        2)4294967264;

    1 int i=10,i2=42;
    2 std::cout<<i2-i<<std::endl;
    3 std::cout<<i-i2<<std::endl;
    4 std::cout<<i-u<<std::endl;
    5 std::cout<<u-i<<std::endl;

    结果为:1)32;

        2)-32;

        3)0;

        4)0;

  • 相关阅读:
    3
    2
    1
    11
    12
    8888888888
    99999999999
    88888888888
    77777777
    10.23
  • 原文地址:https://www.cnblogs.com/Dark-King/p/9336213.html
Copyright © 2020-2023  润新知