当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

(26 )有以下程序#include <stdio.h>void fun (char *c , int d ){*c=*c+1 ; d=d+1 ;prin


(26 )有以下程序

#include <stdio.h>

void fun (char *c , int d )

{*c=*c+1 ; d=d+1 ;

printf (" %c , %c , ", *c , d ) ;

main ()

{ char b= ‘ a ’ , a= ‘ A ’ ;

fun (&b , a ) ; printf (" %e , %e \ n ", b , a ) ;

程序运行后的输出结果是

A ) b , B , b , A

B ) b , B , B , A

C ) a , B , B , a

D ) a , B , a , B

请帮忙给出正确答案和分析,谢谢!

参考答案
您可能感兴趣的试题
  • 有以下程序:include&lt;stdio.h&gt;main(){ char*s=&quot;[2]34&quot;;int k=0,a=0; whil(s[k+

  • (26 )有以下程序#include &lt;stdio.h&gt;void fun (char *c , int d ){*c=*c+1 ; d=d+1 ;prin

  • (19)有以下程序#include &lt;stdio.h&gt;main(){ int s;scanf("%d",&amp;s);while(s&gt;0){ swit

  • (25)有以下程序(说明:字母A的ASCII码值是65)#include &lt;stdio.h&gt;void fun(char *s){ while(

  • (38)有以下程序#include &lt;stdio.h&gt;struct S{ int a,b;}data[2]={10,100,20,200};main(){ s

  • 有以下程序#include &lt;stdio.h&gt;main() { int s=0,n; for(n=o;n&lt;3;n++) { switch(s)