当前位置:网站首页>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;
}
边栏推荐
- 什么是 DevSecOps?2022 年的定义、流程、框架和最佳实践
- Rhcsa operation
- leetcode1229. Schedule the meeting
- 5g/4g wireless networking scheme for brand chain stores
- Legion is a network penetration tool
- Latex insert picture, insert formula
- Vanishing numbers
- Es entry series - 6 document relevance and sorting
- Kotlin set operation summary
- [FAQ] summary of common causes and solutions of Huawei account service error 907135701
猜你喜欢

Realsense of d435i, d435, d415, t265_ Matching and installation of viewer environment

OSPF comprehensive experiment

The most detailed teaching -- realize win10 multi-user remote login to intranet machine at the same time -- win10+frp+rdpwrap+ Alibaba cloud server

【Day1】 deep-learning-basics

入职中国平安三周年的一些总结

Reprint: summation formula of proportional series and its derivation process

BGP ---- border gateway routing protocol ----- basic experiment

183 sets of free resume templates to help everyone find a good job

Occasional pit compiled by idea

Doris / Clickhouse / Hudi, a phased summary in June
随机推荐
Occasional pit compiled by idea
Exercise 8-10 output student grades (20 points)
[FAQ] summary of common causes and solutions of Huawei account service error 907135701
Basic principle of servlet and application of common API methods
DML statement of MySQL Foundation
Es entry series - 6 document relevance and sorting
Native div has editing ability
Hands on deep learning (40) -- short and long term memory network (LSTM)
Exercise 9-3 plane vector addition (15 points)
MPLS: multi protocol label switching
Exercise 7-4 find out the elements that are not common to two arrays (20 points)
Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 1
leetcode1-3
【Day1】 deep-learning-basics
Realsense of d435i, d435, d415, t265_ Matching and installation of viewer environment
Check 15 developer tools of Alibaba
Development guidance document of CMDB
Si vous ne connaissez pas ces quatre modes de mise en cache, vous osez dire que vous connaissez la mise en cache?
AUTOSAR从入门到精通100讲(106)-域控制器中的SOA
Kotlin set operation summary