sizeof操作符

#include <stdio.h>
 
int main() {
    if (sizeof(void*) == 8) {
        printf("64-bit system\n");
    } else {
        printf("32-bit system\n");
    }
    return 0;
}

 

posted @ 2025-04-02 10:48  华腾智算  阅读(8)  评论(0)    收藏  举报
https://damo.alibaba.com/ https://tianchi.aliyun.com/course?spm=5176.21206777.J_3941670930.5.87dc17c9BZNvLL