摘要: #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) 推荐(0)
摘要: 字符集和字符编码不是一个概念, 字符集定义了文字和二进制的对应关系,为字符分配了唯一的编号, 而字符编码规定了如何将文字的编号存储到计算机中。 32位平台所有类型的指针的占用空间大小都是4个字节,64位平台所有类型的指针占用的空间大小为8个字节。 二进制(binary),是在数学和数字电路中以2为基 阅读全文
posted @ 2025-04-02 10:34 华腾智算 阅读(7) 评论(0) 推荐(0)
摘要: #include <stdio.h> void printBinary(int num) { for (int i = 7; i >= 0; i--) { printf("%d", (num >> i) & 1); } printf("\n"); } int main() { for(int i = 阅读全文
posted @ 2025-04-02 10:29 华腾智算 阅读(4) 评论(0) 推荐(0)
摘要: #include<stdio.h> int main(){ int a=10; int *a_ptr=&a; printf("%d\n",*a_ptr); } 阅读全文
posted @ 2025-04-02 08:56 华腾智算 阅读(12) 评论(0) 推荐(0)
https://damo.alibaba.com/ https://tianchi.aliyun.com/course?spm=5176.21206777.J_3941670930.5.87dc17c9BZNvLL