美文网首页
2018-02-03

2018-02-03

作者: 薛定喵喵喵 | 来源:发表于2018-02-03 16:59 被阅读0次

    c++ 复习
    declaration definition

    When a variable is defined,it is also declared. The other way is not true.

    Syntax: Defining Several Variables of the Same Type at Once
    <data-type> <identifier1>, <identifier2>, · · · ;
    Examples
    int radius, num of words;
    char choice, gender, pass or fail;
    When a variable is defined, the compiler allocates memory for
    it.
    The amount of memory is equal to the size of its data type.

    相关文章

      网友评论

          本文标题:2018-02-03

          本文链接:https://www.haomeiwen.com/subject/jziuzxtx.html