test.c

来自「里面包含很多c语言的源码」· C语言 代码 · 共 29 行

C
29
字号
/* random.c - Demonstrates using a multidimensional array */

#include <stdio.h>
#include <stdlib.h>
/* Declare a three-dimensional array with 1000 elements */

int random_array[64000][10];
int a, b, c;

int main( void )
{
    /* Fill the array with random numbers. The C library */
    /* function rand() returns a random number. Use one */
    /* for loop for each array subscript. */

    printf("int %d", sizeof(int));
    printf("short %d", sizeof(short));
    printf("long %d", sizeof(long));
    printf("long long %d", sizeof(long long));
    printf("float %d", sizeof(float));
    printf("double %d", sizeof(double));

    /* Now display the array elements 10 at a time */

    getch();
    return 0;
}   /* end of main() */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?