单项选择题

(27)有以下程序
#include <stdio.h>
void f(int *p,int *q );
main()
{ int m=1,n=2,*r=&m;
f(r,&n);printf(“%d,%d”,m,n);
}
void f(int *p,int *q)
{p=p+1;*q=*q+1;}
程序运行后输出的结果是
A)1,3 B)2,3 C)1,4 D)1,2

A.h>
void
<上一题 目录 下一题>
热门 试题

单项选择题
(39)有以下程序#include <stdio.h>main(){ int a=5,b=1,t;t=(a<<2|b); printf(“%d n”,t)}程序运行后的输出结果是A)21 B)11 C)6 D)1
A.h>
main()
{
单项选择题
(40)有以下程序#include <stdio.h>main(){ FILE *f;f=fopen(“filea.txt”,”w”);fprintf(f,”abc”);fclose(f);}若文本文件filea.txt中原有内容为:hello,则运行以上程序后,文件filea.txt中的内容为A) helloabc B)abclo C)abc D)abchello
A.h>
main()
{
B.txt”,”w”);
fprintf(f,”abc”);
fclose(f);
}
若文本文件filea.txt中原有内容为:hello,则运行以上程序后,文件filea.txt中的内容为
A)
相关试题
  • 当使用魔棒工具选择图像时,在“容差”数值...
  • From this passage we can learn tha...
  • By saying However,for all this,the...
  • Which of the following statements i...
  • The word “appeal to ”in Para.4p...