当前位置:网站首页>Write a program that uses pointers to set all elements of an int array to 4.18: 0.
Write a program that uses pointers to set all elements of an int array to 4.18: 0.
2022-07-04 10:26:00 【qq_ fifty-eight million seven hundred and thirty-six thousand t】
int main(void)
{
int array[10] = { 1,2,3,4,5,6,7,8,9,10 };
int n = 0;
int* p=&n;
for (int i = 0; i != 10; i++)
{
*(array + i) = *p;
cout << array[i];
}
return 0;
}
边栏推荐
- Rhcsa12
- The future education examination system cannot answer questions, and there is no response after clicking on the options, and the answers will not be recorded
- Hands on deep learning (45) -- bundle search
- 六月份阶段性大总结之Doris/Clickhouse/Hudi一网打尽
- The bamboo shadow sweeps the steps, the dust does not move, and the moon passes through the marsh without trace -- in-depth understanding of the pointer
- 对于程序员来说,伤害力度最大的话。。。
- Dynamic address book
- Seven examples to understand the storage rules of shaped data on each bit
- Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 2
- MongoDB数据日期显示相差8小时 原因和解决方案
猜你喜欢
Servlet基本原理与常见API方法的应用
[FAQ] summary of common causes and solutions of Huawei account service error 907135701
183 sets of free resume templates to help everyone find a good job
Rhcsa day 9
If you don't know these four caching modes, dare you say you understand caching?
六月份阶段性大总结之Doris/Clickhouse/Hudi一网打尽
Latex learning insertion number - list of filled dots, bars, numbers
BGP advanced experiment
【Day1】 deep-learning-basics
If the uniapp is less than 1000, it will be displayed according to the original number. If the number exceeds 1000, it will be converted into 10w+ 1.3k+ display
随机推荐
leetcode842. Split the array into Fibonacci sequences
Rhcsa learning practice
Rhsca day 11 operation
Hands on deep learning (45) -- bundle search
For programmers, if it hurts the most...
Architecture introduction
Check 15 developer tools of Alibaba
Dynamic memory management
按键精灵打怪学习-识别所在地图、跑图、进入帮派识别NPC
Rhcsa - day 13
Introduction to extensible system architecture
Latex learning insertion number - list of filled dots, bars, numbers
Two way process republication + routing policy
Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 1
Online troubleshooting
Service developers publish services based on EDAs
Exercise 9-4 finding books (20 points)
Custom type: structure, enumeration, union
Pod management
Kotlin set operation summary