当前位置:网站首页>The array of C language is a parameter to pass a pointer
The array of C language is a parameter to pass a pointer
2022-06-27 15:54:00 【Burn slowly】
#include <stdio.h>
int test_size(int data[]){
printf("sizeof(data) = %ld\n",sizeof(data)); //sizeof(data) = 8
}
// Be careful : All pointer types are occupied 8 Bytes , Regardless of 32 position , still 64 Bit system , Is so
int main(){
int count[] = {1, 2, 3, 4, 5};
printf("sizeof(count) = %ld\n", sizeof(count));//sizoef(count) = 20
test_size(count);
return 0;
}
边栏推荐
- 机械硬盘和ssd固态硬盘的原理对比分析
- What should the ultimate LAN transmission experience be like
- Beginner level Luogu 2 [branch structure] problem list solution
- 跨域图像的衡量新方式Style relevance:论文解读和代码实战
- A distribution fission activity is more than just a circle of friends!
- 洛谷_P1002 [NOIP2002 普及组] 过河卒_dp
- logstash排除特定文件或文件夹不采集上报日志数据
- SQL injection principle
- 洛谷_P1003 [NOIP2011 提高组] 铺地毯_暴力枚举
- 关于TensorFlow使用GPU加速
猜你喜欢

CentOS8-postgresql初始化时报错:initdb: error: invalid locale settings; check LANG and LC_* environment
![Luogu_ P1003 [noip2011 improvement group] carpet laying_ Violence enumeration](/img/65/413ac967cc8fc22f170c8c7ddaa106.png)
Luogu_ P1003 [noip2011 improvement group] carpet laying_ Violence enumeration

Admixture usage document Cookbook

LeetCode每日一练(杨辉三角)

substrate 技术每周速览 20220411

分布式Session解决方案

Eolink launched a support program for small and medium-sized enterprises and start-ups to empower enterprises!

Luogu_ P1007 single log bridge_ thinking

【Pygame小遊戲】這款“吃掉一切”遊戲簡直奇葩了?通通都吃掉嘛?(附源碼免費領)

A distribution fission activity is more than just a circle of friends!
随机推荐
R language error
3.1 simple condition judgment
Open source 23 things shardingsphere and database mesh have to say
ICML 2022 | 阿⾥达摩院最新FEDformer,⻓程时序预测全⾯超越SOTA
On traversal of tree nodes
Indexeddb learning materials
Piblup test report 1- pedigree based animal model
带你认识图数据库性能和场景测试利器LDBC SNB
实现简单的三D立方体自动旋转
Openssf security plan: SBOM will drive software supply chain security
Let's talk about the process of ES Indexing Documents
洛谷_P1002 [NOIP2002 普及组] 过河卒_dp
Principle Comparison and analysis of mechanical hard disk and SSD solid state disk
SQL parsing practice of Pisa proxy
一场分销裂变活动,不止是发发朋友圈这么简单!
Vulnerability recurrence ----- 34. Yapi remote command execution vulnerability
About fast exponentiation
Leetcode daily practice (Yanghui triangle)
专用发票和普通发票的区别
NFT双币质押流动性挖矿dapp合约定制