阿尔卡特的一个笔试题

时间:2021-02-10 14:56:54 综合指导 我要投稿

阿尔卡特的一个笔试题

// ATest.cpp : Defines the entry point for the console application.

//参数传递问题

  1. include "stdafx.h"
  1. include

using namespace std;

void fun(int a,int*b,int &c,int* &d)

{

 a++;

 (*b)++;

 b = new int(10);

 cout<<"aaaa "<

 cout<<"bbbb "<<*b<

 c++;

 d++;

 d = new int(5);

 cout<<"dddd "<

 cout<<"dddd2 "<<*d<

}

int main(int argc, char* argv[])

{

 int a=2,b=3,c=4,d=5;

 int* p = &d;

 fun(a,&b,c,p);

 cout<

 cout<

 cout<

 cout<

 cout<<*p<

// printf("Hello World!\n");

 return 0;

【阿尔卡特的一个笔试题】相关文章:

给学弟学妹的求职笔面试总结03-18

2017笔试各题型答题技巧02-11

一个关于梦想的故事02-14

一个有趣的求职经历03-06

有关面试的笔试题03-19

2017笔试必备:进出口银行常识汇总04-01

一个面霸的求职心经07-04

一个校园IT男的求职故事07-04

一个职场新人的求职经历06-27

一个留美博士的求职故事03-29