puts.c

来自「c21Examples.rar」· C语言 代码 · 共 21 行

C
21
字号
/* Demonstrates puts(). */

#include <stdio.h>

/* Declare and initialize an array of pointers. */

char *messages[5] = { "This", "is", "a", "short", "message." };

int main( void )
{
    int x;

    for (x=0; x<5; x++)
        puts(messages[x]);

    puts("And this is the end!");

    return 0;
}

⌨️ 快捷键说明

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