下列程序运行结果是
#defineP3
#defineS(a)P*a*a
main()
{intar;
ar=S(3+5);
printf(“%d”,ar);}
#defineP3
#defineS(a)P*a*a
main()
{intar;
ar=S(3+5);
printf(“%d”,ar);}
举一反三
- 下列程序运行结果为:#defineP3#defineS(a)P*a*amain(){intar;ar=S(3+5);printf("\n%d",ar);}
- 下列程序运行结果是#define P 3#define S(a) P*a*amain(){ int ar;ar=S(3+5);printf(“%d”,ar); }
- 下列程序的运行结果是()。#define P 3#define S(a) P*a*amain(){int ar;ar=S(3+5);printf("%d",ar); } A: 192 B: 29 C: 27 D: 25
- 下面程序段的运行结果是()注意输出结果的格式#includevoidmain(){char*p=”abcdefgh”;p+=3;printf("%s",p);}
- 程序运行结果是。 # include int main (void) { int a = 1, *p; p = &a; printf ("a=%d,*p=%d,", a, *p); *p = 3; printf("a=%d,*p=%d", a, *p); return 0; }