小编ven*_*kat的帖子

不包括#include <ctype.h>

我写了以下程序,但不包括#include <ctype.h>.我能够执行该程序.这些原型在哪里宣布?我在用gcc.

1.

#include <stdio.h>
int main()
{
    if(isalnum(';'))
        printf("character ; is not alphanumeric");
    if(isalnum('A'))
        printf("character A is alphanumeric ");
    return 0;
}
Run Code Online (Sandbox Code Playgroud)

2.

#include <stdio.h>
int main()
{
    printf("Lower case of A is %c \n", tolower('A'));
    printf("Lower case of 9 is %c \n", tolower('9'));
    printf("Lower case of g is %c \n", tolower('g'));
    printf("ASCII value of B is %d \n", toascii('B'));
    printf("Upper case of g is %c \n", toupper('g'));
    return 0;
}
Run Code Online (Sandbox Code Playgroud)

c header-files

5
推荐指数
1
解决办法
5128
查看次数

不包括<stdio.h>

下面给出的程序工作不包括<stdio.h>?为什么这样做?

int main()
{
    printf("integra");
    return 0;
}
Run Code Online (Sandbox Code Playgroud)

c implicit-declaration

5
推荐指数
4
解决办法
3878
查看次数

为什么用c语言EOF IS -1?

在c语言我使用EOF .....为什么EOF是-1?为什么不是其他价值?

c

3
推荐指数
1
解决办法
469
查看次数

标签 统计

c ×3

header-files ×1

implicit-declaration ×1