当前位置:网站首页>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;
}
边栏推荐
- Eolink launched a support program for small and medium-sized enterprises and start-ups to empower enterprises!
- Pisa-Proxy 之 SQL 解析实践
- 2022-2-16 learning the imitated Niuke project - Section 6 adding comments
- Knightctf 2022 web section
- Pisa-Proxy 之 SQL 解析实践
- Design of vga/lcd display controller based on FPGA (with code)
- Typescript learning materials
- 实现简单的三D立方体自动旋转
- 手机号码的格式
- 2022-2-15 learning the imitated Niuke project - Section 5 shows comments
猜你喜欢

Numerical extension of 27es6

SIGKDD22|图“预训练、提示、微调”范式下的图神经网络泛化框架

Keep valid digits; Keep n digits after the decimal point;

E ModuleNotFoundError: No module named ‘psycopg2‘(已解决)

2022-2-16 learning the imitated Niuke project - Section 6 adding comments

Redis系列2:数据持久化提高可用性

3.1 simple condition judgment

R language error

About tensorflow using GPU acceleration

Today, Teng Xu came out with 37k during the interview. It's really a miracle. He showed me his skill
随机推荐
Piblup test report 1- pedigree based animal model
I want to buy fixed income + products, but I don't know what its main investment is. Does anyone know?
If you want to use DMS to handle database permissions, can you only use Alibaba cloud ram accounts (Alibaba cloud RDS)
目前PolarDB-X是不支持数据库自制服务DAS么?
【Pygame小遊戲】這款“吃掉一切”遊戲簡直奇葩了?通通都吃掉嘛?(附源碼免費領)
On traversal of tree nodes
[170] the PostgreSQL 10 field type is changed from string to integer, and the error column cannot be cast automatically to type integer is reported
Typescript learning materials
Numerical extension of 27es6
2022-2-15 learning the imitated Niuke project - Section 5 shows comments
漏洞复现----34、yapi 远程命令执行漏洞
Principle Comparison and analysis of mechanical hard disk and SSD solid state disk
About tensorflow using GPU acceleration
Weekly snapshot of substrate technology 20220411
Problems encountered in vs compilation
可变参数模板 Variadic Templates
Go error collection | when a function uses a return value with a parameter name
Design of digital video signal processor based on FPGA (with main code)
Redis系列2:数据持久化提高可用性
CNN convolutional neural network (the easiest to understand version in History)