在C语言中,如何声明变量并赋值?
示例代码
#include <stdio.h>
int main()
{
int start = 1999;
printf("The starting value is %d.\\n", start);
return(0);
}
执行上面示例代码,得到以下结果:
hema@ubuntu:~/book$ gcc -o main main.c
hema@ubuntu:~/book$ ./main
The starting value is 1999.