请读程序:main(){ static int a[]={1,2,3,4,5,6} int *p; int i; p=a; *(p+3)+=2; printf("n1=%d,n2=%d\n:",*p,*(p+3));}其输出是________。A、n1=1;n2= 5 B、n1=2,n2=6 C、n1=1 n2=7 D、n1=1,n2=6
举一反三
- 设n=n1n2,(n1,n2)=1,n1≥1,n2≥1,则φ(n)=φ(n1)φ(n2).若n=n1n2,n1≥1,n2≥1,则φ(n)=φ(n1)φ(n2)?
- 有以下程序#include [stdio.h] void main(){ char *s= "120119110"; int n0,n1,n2,nn,i; n0=n1=n2=nn=i=0; do{ switch(s[i++]){ default : nn++; case '0': n0++; case '1': n1++; case '2': n2++; } }while(s[i]); printf("n0=%d,n1=%d,n2=%d,nn=%d\n",n0,n1,n2,nn); }程序的运行结果是( )。[/i] A: n0=3,n1=8,n2=9,nn=1 B: n0=2,n1=5,n2=1,nn=1 C: n0=2,n1=7,n2=10,nn=1 D: n0=4,n1=8,n2=9,nn=1
- 下面N×N的笛卡尔积的子集中,哪些可以构成函数? A: {(n1,n2) | n1,n2∈N and n1+n2 <10} B: {(n1,n2) | n1,n2∈N and n2 = n1^2} C: {(n1,n2) | n1,n2∈N and n1 = n2^2} D: {(n1,n2) | n1,n2∈N and n2为小于n1的素数个数}
- 下面的关系哪些构成函数.(1){(n1,n2)|n1,n2∈N,n1+n2<10};(2){(n1,n2)|n1,n2∈R,n2=n12};(3){(n1,n2)|n1,n2∈R,n22=n1).
- 下列关于时间价值系数的关系式,表达正确的有()()A.(F/A,i,n)=()(P/A,i,n)×(F/P,i,n)()B.(F/P,i,n)=(F/P,i,n1)×(F/P,i,n2),其中n1+n2=n()C.(P/F,i,n)=(P/F,i,n1)+(P/F,i,n2),其中n1+n2=n()D.(P/A,i,n)=(P/F,i,n)×(A/F,i,n)()E.()1/(F/A,i,n)=(F/A,i,1/n)A.()A.(F/A,i,n)=()(P/A,i,n)×(F/P,i,n)()B.()B.(F/P,i,n)=(F/P,i,n1)×(F/P,i,n2),其中n1+n2=n()C.()C.(P/F,i,n)=(P/F,i,n1)+(P/F,i,n2),其中n1+n2=n()D.()D.(P/A,i,n)=(P/F,i,n)×(A/F,i,n)()E.()E.()1/(F/A,i,n)=(F/A,i,1/n)