当前位置:网站首页>The difference between parameter and argument in C language
The difference between parameter and argument in C language
2022-06-12 14:20:00 【silence_ heart】
parameter and argument The difference between , Make the following simple explanation .
1.parameter Is the parameter in the function definition , and argument Refers to the actual parameters of a function call .
2. It is briefly described as :parameter= Shape parameter (formal parameter), argument= Actual parameters (actual parameter).
3. In less strict circumstances , The two can be mixed , It's usually used argument, and parameter It's less used .
While defining method, variables passed in the method are called parameters.
When defining methods , Variables passed to methods are called parameters .
While using those methods, values passed to those variables are called arguments.
When a method is called , The value passed to a variable is called an argument .( Sometimes argument Translated into “ Arguments “)
Reference resources : Baidu Encyclopedia
边栏推荐
- Shell notes
- Player actual combat 14 display YUV
- Llvm pass-- virtual function protection
- Remote code injection
- 通信流量分析
- Dial up and Ethernet
- chapter19 Allocation
- Programmer interview golden classic good question / interview question 01.05 Edit once
- WinDbg preview debug analysis createtoolhelp32snapshot
- How to package QT program learning records with inno setup
猜你喜欢

C語言中主函數調用另外一個函數,匯編代碼理解

如何使用android studio制作一个阿里云物联网APP

Printing colored messages on the console with printf

Analysis of two-dimensional array passing as function parameter (C language)

How to package QT program learning records with inno setup

WinDbg preview debug analysis createtoolhelp32snapshot

Player actual combat 14 display YUV

Detailed explanation of C language memset

Alibaba cloud development board haas510 sends the serial port data to the Internet of things platform

Leetcode 2176. 统计数组中相等且可以被整除的数对
随机推荐
Player actual combat 14 display YUV
If you want to build brand awareness, what bidding strategy can you choose?
Sorting out the differences between ABS () and Fabs () in C language
Void pointer (void*) usage
Player actual combat 13 create qtopengl project to promote window control and reload qoopenglwedge
Player practice 26 adding slider and window maximization
Leetcode 2176. Count equal and divisible pairs in an array
Player practice 19 xaudio turn on audio
Reverse the encryption parameters of a hot water software
Des File Encryptor based on MFC framework
In C language, the main function calls another function, which is understood by assembly code
Wait function in SystemC
[MySQL] basic database operation
[early knowledge of activities] list of recent activities of livevideostack
Interview question 17.14 Minimum number of K (almost double hundreds)
动态搜索广告智能查找匹配关键字
Player practice 15 xdemux and avcodecparameters
Codeforces Round #798 (Div. 2)(A~D)
初学者入门阿里云haas510开板式DTU(2.0版本)--510-AS
Lua common built-in functions