当前位置:网站首页>Function (error prone)
Function (error prone)
2022-07-05 04:18:00 【Cao Lele loves learning】
Function passing array , When the pointer , It's just the starting address .
example :1 Sum of dimension groups

Find out , Find the size of the array , be equal to 2? instead of 5?
Explain it. 2 How did you get it : Because mine is 64 It's a plane , and sizeof(int) Everybody knows ,4 byte ,32 position ; therefore sizeof(p), It should be 64; Why 64? Because I said the first sentence : Function passing array , When the pointer , What is passed is only an address ,64 Address of bit machine , No, it is. 64bit Well .
therefore , To make an array ( The pointer ) Size , It should also be passed to the function in the form of formal parameters .

--------------------------------------------------------------------------------------------------------------------
A character array , Because there is at the end '\0', So sometimes it is not necessary to pass the array size when passing parameters
example : Remove spaces from string

边栏推荐
- laravel8 导出Excle文件
- Uni app change the default component style
- EasyCVR更改录像存储路径,不生成录像文件如何解决?
- MacBook installation postgresql+postgis
- Hexadecimal to octal
- 【虚幻引擎UE】打包报错出现!FindPin错误的解决办法
- Ctfshow 2022 Spring Festival welcome (detailed commentary)
- Network security - record web vulnerability fixes
- After the deployment of web resources, the navigator cannot obtain the solution of mediadevices instance (navigator.mediadevices is undefined)
- [Chongqing Guangdong education] 2408t Chinese contemporary literature reference test in autumn 2018 of the National Open University
猜你喜欢

Longyuan war "epidemic" 2021 network security competition web easyjaba
![[understand series after reading] 6000 words teach you to realize interface automation from 0 to 1](/img/eb/c944d4a71ce30589e71059ed848899.png)
[understand series after reading] 6000 words teach you to realize interface automation from 0 to 1

Learning notes 8

如何实现实时音视频聊天功能
![[phantom engine UE] package error appears! Solutions to findpin errors](/img/d5/6747e20da6a8a4ca461094bd27bbf0.png)
[phantom engine UE] package error appears! Solutions to findpin errors

Threejs Internet of things, 3D visualization of farm (III) model display, track controller setting, model moving along the route, model adding frame, custom style display label, click the model to obt

蛇形矩阵

在线SQL转Excel(xls/xlsx)工具

American 5g open ran suffered another major setback, and its attempt to counter China's 5g technology has failed

Fuel consumption calculator
随机推荐
How does the applet solve the rendering layer network layer error?
[phantom engine UE] package error appears! Solutions to findpin errors
快手、抖音、视频号交战内容付费
这是一个不确定的时代
概率论与数理统计考试重点复习路线
Scheduling system of kubernetes cluster
如何进行「小步重构」?
Threejs implements labels and displays labels with custom styles
Laravel8 export excel file
Common features of ES6
Rust区块琏开发——签名加密与私钥公钥
【UNIAPP】系统热更新实现思路
函数(易错)
【thingsboard】替换首页logo的方法
Bit operation skills
Study notes 7
函数(基本:参数,返回值)
指针函数(基础)
Interview related high-frequency algorithm test site 3
About the prompt loading after appscan is opened: guilogic, it keeps loading and gets stuck. My personal solution. (it may be the first solution available in the whole network at present)