填空题
下面的程序段的,运行结果是______。 int c=6; void test(x,y) int*x,y; { *x=3*(*x);y=*x+y;c=y%(*x); printf("x=%d,y=%d,c=%d\n",*x,y,c); } main() { int a=1,b=4; test (&a,b); printf("a=%d,b=%d,c=%d\n",a,b,c) }
【参考答案】
x=3,y=7,c=1 a=3,b=4,c=1
点击查看答案
<上一题
目录
下一题>
热门
试题
填空题
以下程序运行后输出______。#include <stdio.h>int f(char*s1,char*s2){ static int n1,n2;while(*s1++)n1++;while(*s2++)n2++;return n1-n2;}main(){ printf( %d ,f( c: program , 12a t34 n ));}
点击查看答案
填空题
己知变量a为float型,则a在内存中占______个字节,该变量的地址是第______个字节的地址。
点击查看答案
相关试题
有以下函数 char*fun(char*p) {retu...
有如下程序段 int*p,a=10,b=1;p...
若有以下调用语句,则不正确的fun()函数...
设有如下函数定义,则输出结果为_____...
设有定义“int a=3,b,*p=&a”,则...