当前位置:网站首页>C面试24. (指针)定义一个含有20个元素的double型数组a
C面试24. (指针)定义一个含有20个元素的double型数组a
2022-07-07 01:40:00 【我不是萧海哇~~~~】
- (指针)定义一个含有20个元素的double型数组a,定义一个指针变量ptrDouble指向该数组的首地址,然后通过该指针变量给该数组各元素赋值(等于下标值乘以3.2+1.5)。接下来再让该指针指向数组a的a[10],从该元素起求后面所有元素的和
要求:
输出要求:1)输出该数组的所有元素;2)输出上面求得的10个元素的和;
编程要求:除了定义数组a外,程序关于数组a的一切操作都要通过指针变量ptrDouble来实现。
void ff(int *arr,int len)
{
int *ptrDouble=arr
边栏推荐
- Loss function and positive and negative sample allocation in target detection: retinanet and focal loss
- SAP Spartacus checkout 流程的扩展(extend)实现介绍
- JMeter function assistant - random value, random string, fixed value random extraction
- CMD permanently delete specified folders and files
- Bbox regression loss function in target detection -l2, smooth L1, IOU, giou, Diou, ciou, focal eiou, alpha IOU, Siou
- Database notes 04
- Apple CMS V10 template /mxone Pro adaptive film and television website template
- Go language learning notes - Gorm use - Gorm processing errors | web framework gin (10)
- 软件测试的几个关键步骤,你需要知道
- jmeter 函数助手 — — 随机值、随机字符串、 固定值随机提取
猜你喜欢
【GNN】图解GNN: A gentle introduction(含视频)
外设驱动库开发笔记43:GPIO模拟SPI驱动
jvm命令之 jcmd:多功能命令行
Ideas of high concurrency and high traffic seckill scheme
POI excel export, one of my template methods
JVM command - jmap: export memory image file & memory usage
laravel 使用腾讯云 COS5全教程
Career experience feedback to novice programmers
3428. 放苹果
ETCD数据库源码分析——从raftNode的start函数说起
随机推荐
VScode进行代码补全
Check point: the core element for enterprises to deploy zero trust network (ztna)
JVM命令之- jmap:导出内存映像文件&内存使用情况
你不知道的互联网公司招聘黑话大全
New Year Fireworks code plus copy, are you sure you don't want to have a look
Rk3399 platform development series explanation (WiFi) 5.52. Introduction to WiFi framework composition
职场经历反馈给初入职场的程序员
Qtthread, one of many methods of QT multithreading
[SOC FPGA] custom IP PWM breathing lamp
When we talk about immutable infrastructure, what are we talking about
cf:C. Column Swapping【排序 + 模拟】
The boss always asks me about my progress. Don't you trust me? (what do you think)
Jcmd of JVM command: multifunctional command line
安装VMmare时候提示hyper-v / device defender 侧通道安全性
解决pod install报错:ffi is an incompatible architecture
360织语发布7.0新品 为党政军、央国企打造专属“统一数字工作空间”
Mac version PHP installed Xdebug environment (M1 version)
「解析」FocalLoss 解决数据不平衡问题
yarn入门(一篇就够了)
Peripheral driver library development notes 43: GPIO simulation SPI driver