当前位置:网站首页>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
边栏推荐
- On the day 25K joined Tencent, I cried
- Threejs rendering obj+mtl model source code, 3D factory model
- Study notes 7
- 机器学习 --- 决策树
- Interview byte, pass the exam and directly work on three sides. As a result, I found an architect to hang me?
- How to remove installed elpa package
- 根据入栈顺序判断出栈顺序是否合理
- 学习MVVM笔记(一)
- 技术教程:如何利用EasyDSS将直播流推到七牛云?
- Phpmailer reported an error: SMTP error: failed to connect to server: (0)
猜你喜欢
北京程序员的真实一天!!!!!
Online sql to excel (xls/xlsx) tool
Pyqt pyside custom telescopic menu bar sharing (including tutorial)
阿里云ECS使用cloudfs4oss挂载OSS
[phantom engine UE] realize the animation production of mapping tripod deployment
OWASP top 10 vulnerability Guide (2021)
Interview byte, pass the exam and directly work on three sides. As a result, I found an architect to hang me?
Rust blockchain development - signature encryption and private key public key
Differences among 10 addressing modes
Rome chain analysis
随机推荐
Threejs realizes sky box, panoramic scene, ground grass
Hexadecimal to decimal
[untitled]
About the project error reporting solution of mpaas Pb access mode adapting to 64 bit CPU architecture
我国算力规模排名全球第二:计算正向智算跨越
【虚幻引擎UE】实现背景模糊下近景旋转操作物体的方法及踩坑记录
Uni app change the default component style
[phantom engine UE] only six steps are needed to realize the deployment of ue5 pixel stream and avoid detours! (the principles of 4.26 and 4.27 are similar)
All in one 1413: determine base
Is "golden nine and silver ten" the best time to find a job? Not necessarily
如何进行「小步重构」?
How does the applet solve the rendering layer network layer error?
【虚幻引擎UE】打包报错出现!FindPin错误的解决办法
Containerd series - what is containerd?
Kwai, Tiktok, video number, battle content payment
概率论与数理统计考试重点复习路线
如何实现实时音视频聊天功能
web资源部署后navigator获取不到mediaDevices实例的解决方案(navigator.mediaDevices为undefined)
WGS84 coordinate system, web Mercator, gcj02 coordinate system, bd09 coordinate system - brief introduction to common coordinate systems
Threejs realizes rain, snow, overcast, sunny, flame