文件名称:test05
介绍说明--下载内容均来自于网络,请自行研究使用
编写程序,定义一个函数,行参为int,在函数里面打印行参的地址;调用此函数,并打印实参的地址,与行参地址进行比较;理解值传递的机制;
编写程序,定义一个函数,行参为int&,在函数里面打印行参的地址;调用此函数,并打印实参的地址,与行参地址进行比较;理解引用传递的机制;
编写程序,定义一个函数,行参为int*,在函数里面打印行参的地址;调用此函数,并打印实参的地址,与行参地址进行比较;理解指针传递的机制;-Programming, define a function, the line parameter is int, address print line parameter inside the function calling this function, and print the address argument line parameter address understand the value of the transmission mechanism programming, define a function, line parameters for int & the print line parameters the address inside the function calling this function, and print the arguments of the address line parameter address comparison understand the mechanism passed by reference programming, the definition of a function, the line parameters for the int* Print the address line parameters inside the function calling this function, and print the address of the argument, to compare the line parameters address understand the mechanism of passing a pointer
编写程序,定义一个函数,行参为int&,在函数里面打印行参的地址;调用此函数,并打印实参的地址,与行参地址进行比较;理解引用传递的机制;
编写程序,定义一个函数,行参为int*,在函数里面打印行参的地址;调用此函数,并打印实参的地址,与行参地址进行比较;理解指针传递的机制;-Programming, define a function, the line parameter is int, address print line parameter inside the function calling this function, and print the address argument line parameter address understand the value of the transmission mechanism programming, define a function, line parameters for int & the print line parameters the address inside the function calling this function, and print the arguments of the address line parameter address comparison understand the mechanism passed by reference programming, the definition of a function, the line parameters for the int* Print the address line parameters inside the function calling this function, and print the address of the argument, to compare the line parameters address understand the mechanism of passing a pointer
(系统自动生成,下载前可以参看下载内容)
下载文件列表
test05.doc