当前位置:网站首页>What parameters should be passed in calling integer or character array functions
What parameters should be passed in calling integer or character array functions
2022-07-28 19:35:00 【nine thousand six hundred and seventy-seven】
- Say first conclusion
// Experimental array , Whether it's a character array or an array
// At call time , Is to pass in the array address
// The function parameter of the call can be int A ,int A[ ]
//int A[ ] This is because the array name is the first address of the array
// The pointer type is int, A pointer refers to an address
// At the same time, you can write fun(A)
// or fun(&A[1]) What's going on here is The address of the second array element
// The same goes for character arrays , The following is a running example - The following is the running result of each code
#include"stdio.h"
void fun(int A[]){
for(int i=0;i<3;i++)
printf("%d\n",A[i]);
}
int main(){
int A[3]={
1,2,3};
fun(&A[1]);
return 0;
}






边栏推荐
- Nokia expands its 5g agreement with BT and will become its largest wireless access device supplier
- 为研发高端光刻胶,晶瑞股份斥资7500万元购买SK海力士的ASML光刻机
- 可转债概念表 x Notion 给你方便快捷的体验!
- 助力面板行业创新,FPGA将成屏厂TCON最佳选择?
- In order to develop high-end photoresist, Jingrui Co., Ltd. invested 75million yuan to purchase SK Hynix ASML lithography machine
- Taking the opportunity of digital transformation, how can 3C enterprises achieve efficient collaboration through SRM supplier cloud collaboration platform?
- adb remount of the / superblock failed: Permission denied
- When CNN meets transformer cmt:revolutionary neural networks meet vision transformers
- App自动化测试是怎么实现H5测试的
- Prometheus部署
猜你喜欢

2022年全国最新消防设施操作员(中级消防设施操作员)题库及答案

WPF 实现带蒙版的 MessageBox 消息提示框

企业级分布式爬虫框架入门

微信公众号授权登录后报redirect_uri参数错误的问题

Pytorch:交叉熵损失(CrossEntropyLoss)以及标签平滑(LabelSmoothing)的实现

英语文章翻译-英语文章翻译软件-免费批量翻译

Rust Getting Started Guide (rustup, cargo)

英文翻译葡萄牙语-批量英文转换葡萄牙语-各种语言免费互译转换

Rust Getting Started Guide (modules and engineering structures)
![[solved] ac86u ml revision firmware virtual memory creation failed, prompting that the USB disk reading and writing speed does not meet the requirements](/img/1c/6dbfcb5e6ade52d8cbfabcb34616a5.png)
[solved] ac86u ml revision firmware virtual memory creation failed, prompting that the USB disk reading and writing speed does not meet the requirements
随机推荐
Rust Getting Started Guide (rustup, cargo)
China's first chip stamp released: built-in 120um ultra-thin NFC chip
业务可视化-让你的流程图“Run“起来(4.实际业务场景测试)
andorid系统layout、values、drawable适配
华为入股南京芯视界,布局固态激光雷达芯片领域
英文翻译西班牙语-批量英文翻译西班牙工具免费
The opening price soared by 215%! Domestic signal chain chip enterprise Xinhai Technology landed on the scientific innovation board
shared_ptr 和 make_shared 的使用
Android-第十三节03xUtils-数据库框架(增删改查)详解
Design of library management database system
Germany and Portugal have announced that they will not disable Huawei 5g equipment, but Germany will set strict restrictions!
助力面板行业创新,FPGA将成屏厂TCON最佳选择?
Redis master-slave architecture (how to calculate sizeof function)
Jestson nano Object detection
Rust Getting Started Guide (crite Management)
navicate修改数据库名的方式
Report redirect after authorized login on wechat official account_ The problem of wrong URI parameters
Iclr21 (classification) - future classic "vit" an image is worth 16x16 words (including code analysis)
Dockler的基础用法
CVPR21-无监督异常检测《CutPaste:Self-Supervised Learning for Anomaly Detection and Localization》