题解 | 定义变量

定义变量

https://www.nowcoder.com/practice/3ddbc410017a4da48f05a6c8619b32d2

#include <iostream>
#include <strings.h>
using namespace std;


int main() {

    // write your code here......
    char ch = 'a';
    int in = 4;
    long l = 41;
    double d = 42.365;

    cout<<sizeof(ch)<<endl;
    cout<<sizeof(in)<<endl;
    cout<<sizeof(l)<<endl;
    cout<<sizeof(d)<<endl;


    return 0;
}

全部评论

相关推荐

zzzilik:四个月实习做了3个项目不觉得很假吗,真没必要写这么多吧我感觉挑点核心的重点写一下我感觉会好点
你的简历改到第几版了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务