• 2021-04-14
    分析下面程序的执行结果。 #include int main() { printf("Hello,China!\n"); printf("Hello Kitty!\n"); return 0; }
  • Hello,China! Hello Kitty!

    内容

    • 0

      执行以下程序后,输出结果为。#include<;stdio.h>;int n;void f();int main(){n=0;f();n=n+2;printf("%d\n",n);return 0;}void f(){n=n+5;}

    • 1

      #include &#91;stdio.h&#93; int main() { int a=1; int *pa; pa=&a; printf("a=%d\n",a); printf("*pa=%d\n",*pa); *pa=2; printf("a=%d\n",a); return 0; }的运行结果()

    • 2

      下面程序的输出结果是: #include int main() { int a=3; printf("a=%d,",a); a=a+1; printf("a=%d,",a); a*=2; printf("a=%d\n",a); return 1; }

    • 3

      以下程序中,运行结果是36的有()。 A: include <stdio.h> B: define M(y) y*y int main() { printf("%d\n",M(6+0)); return 0; } C: include <stdio.h> D: define M(y) (y)*(y) int main() { printf("%d\n",M(6+0)); return 0; } E: include <stdio.h> int M(int y) { return y*y; } int main() { printf("%d\n",M(6+0)); return 0; } F: include <stdio.h> int M(int y) { return (y)*(y); } int main() { printf("%d\n",M(6+0)); return 0; }

    • 4

      以下程序没有语法问题的是() A: B: include<;stdio.h>;int main( ){int x , y = 5 ; printf( "%d\n" , x / y ) ; return 0 ;} C: D: include<;stdio.h>;int main( ){int x = 3 ;y = 5 ; printf( "%d\n" , x / y ) ; return 0 ;} E: F: include<;stdio.h>;int main( ){int x = 3 ,y ; printf( "%d\n" , x / y ) ;y = 5; return 0 ;} G: H: include<;stdio.h>;int main( ){int x = 3 , y = 5 ; printf( "%d\n" , x / y ) ; return 0 ;}