当前位置:网站首页>C interview 24 (pointer) define a double array with 20 elements a
C interview 24 (pointer) define a double array with 20 elements a
2022-07-07 06:25:00 【I'm not Xiao Haiwa~~~~】
- ( The pointer ) Define a containing 20 An element of double Type of the array a, Define a pointer variable ptrDouble Point to the first address of the array , Then assign values to each element of the array through the pointer variable ( Equal to the subscript value times 3.2+1.5). Next, let the pointer point to the array a Of a[10], Find the sum of all the following elements from this element
requirement :
Output requirements :1) Output all elements of the array ;2) Output the result obtained above 10 The sum of the elements ;
Programming requirements : In addition to defining arrays a Outside , Program about arrays a All operations of must pass through pointer variables ptrDouble To achieve .
void ff(int *arr,int len)
{
int *ptrDouble=arr
边栏推荐
- 安装VMmare时候提示hyper-v / device defender 侧通道安全性
- Swagger3 configuration
- jvm命令之 jcmd:多功能命令行
- 3531. 哈夫曼树
- Several key steps of software testing, you need to know
- 蚂蚁庄园安全头盔 7.8蚂蚁庄园答案
- 360 Zhiyu released 7.0 new products to create an exclusive "unified digital workspace" for the party, government and army, and central and state-owned enterprises
- 港科大&MSRA新研究:关于图像到图像转换,Fine-tuning is all you need
- When we talk about immutable infrastructure, what are we talking about
- Open the blue screen after VMware installation
猜你喜欢
外设驱动库开发笔记43:GPIO模拟SPI驱动
Ctfshow-- common posture
string(讲解)
"Parse" focalloss to solve the problem of data imbalance
哈趣投影黑马之姿,仅用半年强势突围千元投影仪市场!
Audio distortion analysis of DSP and DAC based on adau1452
屏幕程序用串口无法调试情况
HKUST & MsrA new research: on image to image conversion, fine tuning is all you need
Find duplicate email addresses
Rk3399 platform development series explanation (WiFi) 5.52. Introduction to WiFi framework composition
随机推荐
Handling hardfault in RT thread
为不同类型设备构建应用的三大更新 | 2022 I/O 重点回顾
Swagger3 configuration
哈趣投影黑馬之姿,僅用半年强勢突圍千元投影儀市場!
window下面如何安装swoole
Matlab / envi principal component analysis implementation and result analysis
Database notes 04
QT console output in GUI applications- Console output in a Qt GUI app?
Redisl garbled code and expiration time configuration
A very good JVM interview question article (74 questions and answers)
基本Dos命令
Apple CMS V10 template /mxone Pro adaptive film and television website template
屏幕程序用串口无法调试情况
Peripheral driver library development notes 43: GPIO simulation SPI driver
K8s running Oracle
[Shell]常用shell命令及测试判断语句总结
Rk3399 platform development series explanation (WiFi) 5.52. Introduction to WiFi framework composition
693. 行程排序
jmeter 函数助手 — — 随机值、随机字符串、 固定值随机提取
UIC (configuration UI Engineering) public file library adds 7 industry materials