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

边栏推荐
- [untitled]
- laravel8 导出Excle文件
- PR video clip (project packaging)
- MacBook installation postgresql+postgis
- Threejs realizes the drawing of the earth, geographical location annotation, longitude and latitude conversion of world coordinates threejs coordinates
- Threejs rendering obj+mtl model source code, 3D factory model
- User behavior collection platform
- 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
- Un réveil de l'application B devrait être rapide
- 这是一个不确定的时代
猜你喜欢

Alibaba cloud ECS uses cloudfs4oss to mount OSS

【UNIAPP】系统热更新实现思路

3. Package the bottom navigation tabbar

【虚幻引擎UE】实现UE5像素流部署仅需六步操作少走弯路!(4.26和4.27原理类似)
![[brush questions] BFS topic selection](/img/24/7ec68ef60f94f7b366054824223709.png)
[brush questions] BFS topic selection

Differences among 10 addressing modes

Threejs implements labels and displays labels with custom styles
![[thingsboard] how to replace the homepage logo](/img/65/5296c26f975d79d65d36c2e76e47c1.png)
[thingsboard] how to replace the homepage logo

Use Firefox browser to quickly pick up Web image materials

Use threejs to create geometry and add materials, lights, shadows, animations, and axes
随机推荐
All in one 1413: determine base
基于TCP的移动端IM即时通讯开发仍然需要心跳保活
Ctfshow web entry code audit
函数(基本:参数,返回值)
The development of mobile IM based on TCP still needs to keep the heartbeat alive
SPI read / write flash principle + complete code
Rust blockchain development - signature encryption and private key public key
[moteur illusoire UE] il ne faut que six étapes pour réaliser le déploiement du flux de pixels ue5 et éviter les détours! (4.26 et 4.27 principes similaires)
Learning notes 8
Fuel consumption calculator
网络安全-记录web漏洞修复
25K 入职腾讯的那天,我特么哭了
Online text line fixed length fill tool
Use Firefox browser to quickly pick up Web image materials
Moco is not suitable for target detection? MsrA proposes object level comparative learning target detection pre training method SOCO! Performance SOTA! (NeurIPS 2021)...
DFS and BFS concepts of trees and graphs
mysql的七种join连接查询
C语言课设:影院售票管理系统
【虚幻引擎UE】打包报错出现!FindPin错误的解决办法
TPG x AIDU|AI领军人才招募计划进行中!