C 中的特定变量命名问题

Specific variable naming concerns in C

我正在编写一个程序,我只需要检查一下:我可以将变量命名为 outputinput 吗? 例如:

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>

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