我写了以下程序,但不包括#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) 下面给出的程序工作不包括<stdio.h>?为什么这样做?
int main()
{
printf("integra");
return 0;
}
Run Code Online (Sandbox Code Playgroud)