当前位置:网站首页>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;
}
边栏推荐
- Different perspectives
- If you want to use DMS to handle database permissions, can you only use Alibaba cloud ram accounts (Alibaba cloud RDS)
- 避孕套巨头过去两年销量下降40% ,下降原因是什么?
- [interview questions] common interview questions (I)
- Li Chuang EDA learning notes 16: array copy and array distribution
- NFT双币质押流动性挖矿dapp合约定制
- Markdown syntax
- Eolink launched a support program for small and medium-sized enterprises and start-ups to empower enterprises!
- express
- LeetCode每日一练(无重复字符的最长子串)
猜你喜欢

3.4 fixed number of cycles II

Let's talk about the process of ES Indexing Documents

Creation and use of static library (win10+vs2022

带你认识图数据库性能和场景测试利器LDBC SNB

分布式Session解决方案

Leetcode daily practice (Yanghui triangle)

Introduce you to ldbc SNB, a powerful tool for database performance and scenario testing

一场分销裂变活动,不止是发发朋友圈这么简单!

带你认识图数据库性能和场景测试利器LDBC SNB

洛谷_P1007 独木桥_思维
随机推荐
Piblup test report 1- pedigree based animal model
Pisa-Proxy 之 SQL 解析实践
Je veux acheter des produits à revenu fixe + mais je ne sais pas quels sont ses principaux investissements.
洛谷_P1008 [NOIP1998 普及组] 三连击_枚举
开源二三事|ShardingSphere 与 Database Mesh 之间不得不说的那些事
Difference between special invoice and ordinary invoice
Markdown syntax
Introduction to TTCAN brick moving
Numerical extension of 27es6
Design principles and ideas: design principles
固收+产品有什么特点?
Luogu_ P1008 [noip1998 popularization group] triple strike_ enumeration
洛谷_P1003 [NOIP2011 提高组] 铺地毯_暴力枚举
E ModuleNotFoundError: No module named ‘psycopg2‘(已解决)
express
Nemo of pulseaudio (22)
关于快速幂
A distribution fission activity is more than just a circle of friends!
3.1 simple condition judgment
The latest development course of grain college in 2022: 8 - foreground login function