首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
自考
#include < stdio.h > func ( int a,int b) {int c; c =a+b; retum c; } main() { int x =6,r;
#include < stdio.h > func ( int a,int b) {int c; c =a+b; retum c; } main() { int x =6,r;
admin
2016-12-25
31
问题
#include < stdio.h >
func ( int a,int b)
{int c; c =a+b;
retum c; }
main()
{ int x =6,r;
r = func( x,x +=2) ;
printf( "% d\n",r) ;
选项
答案
16(注意:x+=2后,x的值改变了)
解析
转载请注明原文地址:https://www.kaotiyun.com/show/MkAx777K
本试题收录于:
高级语言程序设计题库理工类分类
0
高级语言程序设计
理工类
相关试题推荐
#include"stdio.h"char*fun(s,c)char*s,c;{char*p=NULL;while(*s!=’\0’){if(*s==c){P=s;break;}++s;
#includeintf=1;intfac(intn){f=f*n;returnf;}main(){inti;for(i=1;i<=4,i++){print
#include"stdio.h"structdate{intyear=2000;intmonth;intday;};main(){structdated;d.mo
#include<stdio.h>main()(inta=100,b=200,c=300,d,*p1=&a,*p2=&b,*p3=&c;d=*p1+*p2:printf("d=%d\n",d);p1=&d:
#include<stdio.h>main()(inta[6]={1,2,3,4,5,6},i;floataver=0,t=0;for(i=0;i<6;i++)t=t+a[i];aver=
以下程序的功能是:求30个学生某门课程的平均成绩。#include<stdio.h>main(){intn=30,i=0,t;floataver=0;while(i<n){scanf("%
随机试题
“在股利收入与股票价格上涨产生的资本利得收益之间,投资者更倾向于前者”,该观点体现的股利理论是()
关于少女经前卫生指导错误的是
常与氯丙嗪、异丙嗪组成冬眠合剂的药物
粘滞是下述哪一邪气的致病特点
pH值为1.0和3.0的两种强酸的水溶液等体积混合后,溶液的pH值为( )。
登记账簿时一般用蓝黑或碳素墨水满格书写。()
经营者违反《反垄断法》规定,达成并实施垄断协议的,可以采取的处罚有()。
黄金假期。游乐园人满为患,窗口买票队伍骚动。怎么办?
唯物主义学派和唯心主义学派的主要区别有()
VibratingRubberCellphonesVibratingrubbercellphonescouldbethenextbigthinginmobilecommunications.Theyallowpeople
最新回复
(
0
)