C中特定的变量命名问题

我正在编写程序,我只需要检查一下:我可以命名变量output还是input吗? 例如:

int output;
int input;

或者这是其他名称的预先分配名称吗?我要为程序导入的模块是:

#include <pwd.h>
#include <fcntl.h>
#include <stdio.h>
#include <signal.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <setjmp.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <readline/history.h>
#include <readline/readline.h>
chengyi275 回答:C中特定的变量命名问题

如果变量和任何保留字之间存在冲突,编译器将在编译过程中向您发出警告或错误通知。因此,如果编译没有产生任何错误,则为您分配变量的名称就很好。

本文链接:https://www.f2er.com/2816098.html

大家都在问