当前位置:网站首页>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

边栏推荐
- Wechat applet development process (with mind map)
- Online text line fixed length fill tool
- laravel8 导出Excle文件
- 【UNIAPP】系统热更新实现思路
- 函数(易错)
- Containerd series - what is containerd?
- What is test development? Why do so many companies hire test developers now?
- 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)
- “金九银十”是找工作的最佳时期吗?那倒未必
- 学习MVVM笔记(一)
猜你喜欢

电源管理总线 (PMBus)

What is test development? Why do so many companies hire test developers now?

【虛幻引擎UE】實現UE5像素流部署僅需六步操作少走彎路!(4.26和4.27原理類似)

Threejs factory model 3DMAX model obj+mtl format, source file download

【虚幻引擎UE】实现UE5像素流部署仅需六步操作少走弯路!(4.26和4.27原理类似)

Differences among 10 addressing modes

EasyCVR平台出现WebRTC协议视频播放不了是什么原因?

Wechat applet development process (with mind map)

Why do big companies such as Baidu and Alibaba prefer to spend 25K to recruit fresh students rather than raise wages by 5K to retain old employees?

Containerd series - detailed explanation of plugins
随机推荐
provide/inject
BDF application - topology sequence
网络安全-记录web漏洞修复
北京程序员的真实一天!!!!!
这是一个不确定的时代
【UNIAPP】系统热更新实现思路
[uniapp] system hot update implementation ideas
Online sql to excel (xls/xlsx) tool
Network security - record web vulnerability fixes
How does the applet solve the rendering layer network layer error?
根据入栈顺序判断出栈顺序是否合理
Threejs realizes sky box, panoramic scene, ground grass
A應用喚醒B應該快速方法
如何优雅的获取每个分组的前几条数据
JVM garbage collection
Rust blockchain development - signature encryption and private key public key
Kwai, Tiktok, video number, battle content payment
基于TCP的移动端IM即时通讯开发仍然需要心跳保活
防护电路中的元器件
Wechat applet development process (with mind map)