C语言语义错误 调试C程序 C实例程序 C语言语义错误 /* stillbad.c -- a program with its syntax errors fixed */ #include <stdio.h> int main(void) { int n, n2, n3; /* this program has a semantic error */ n = 5; n2 = n * n; n3 = n2 * n2; printf("n = %d, n squared = %d, n cubed = %d\n", n, n2, n3); return 0; } 调试C程序 C实例程序