下列程序的输出结果是______。 include<stdio.h> int t(int x int
下列程序的输出结果是______。 include<stdio.h> int t(int x,int y,int cp,int dp) {cp=x*x+y*y; 如:dp=x*-y*y; } main() {int a=1,b=8,c=7,d=9; t(a,b,c,D) ; printf("%d%d/n",c,D) ; }
请帮忙给出正确答案和分析,谢谢!
参考解答
正确答案:7 9
因为在调用子函数时进行的是数值传递,调用子函数并不能改变实参的值,所以经过调用子函数,c、d的值并没有发生变化还是原来的值。
相似问题
以下程序的运行结果是______。 include <string.h> typedef struc
以下程序的运行结果是______。 include <string h> typedef struct student { char name[10]; long sno; float score;} STU; main() {
If one dies before 65 years old the policy pays
If one dies before 65 years old , the policy pays out much more than the investment (英译汉)
我国中央国库业务由____________代理。
我国中央国库业务由____________代理。
On the day of the race my grandfather and his fr
On the day of the race , my grandfather and his friend fed the dog lots of cakes so it wouldn "t want to run (英译汉)
数据库系统中实现各种数据管理功能的核心软件是______。请帮忙给出正确答案和分析 谢谢!
数据库系统中实现各种数据管理功能的核心软件是______。请帮忙给出正确答案和分析,谢谢!
