Comments (2)
关于const指针部分有点疑惑 ❓
问:“声明一个常量指针,指向一个整型,但指向的地址不可变”
正确的答案应该是:const int * a(int const * a)。
常量指针应该是指向常量的指针变量,而不是指向的地址不可变吧。
int * const a 是指向的整型的值不可变,指针本身可变。
这句话应该是指向的整型值可变,指针本身不可变。
from blog.
关于const指针部分有点疑惑 ❓
问:“声明一个常量指针,指向一个整型,但指向的地址不可变”
正确的答案应该是:const int * a(int const * a)。常量指针应该是指向常量的指针变量,而不是指向的地址不可变吧。
int * const a 是指向的整型的值不可变,指针本身可变。
这句话应该是指向的整型值可变,指针本身不可变。
嗯嗯,已改。笔误了,跟我下面的速记也矛盾了
from blog.
Related Issues (20)
- 计算广告学:目录
- 计算广告学: 广告的基本知识 HOT 10
- Tweet HOT 2
- 计算广告学:合约广告系统 HOT 6
- 2018,人生是一条蛇,它咬着自己的尾巴 HOT 11
- 为什么我说C/C++程序员都要阅读Redis源码之:通过Redis学习事件驱动设计 HOT 5
- 《这就是搜索引擎》读书笔记:网页作弊
- 高山仰之可极,谈半同步/半异步网络并发模型
- 也谈C++:重剑无锋,大巧不工
- [译]C++天问! HOT 4
- [译]C++20: 协程一瞥 HOT 4
- 知我者,知乎也 HOT 13
- TBB:quick start HOT 2
- C++转型对比
- [译]C++20:协程实现无限数据流 HOT 1
- [译]C++20:关于协程的更多详细讨论 HOT 2
- conda入门
- 关于分布式中CAP的反思
- Faiss: Quick Start HOT 1
- brpc安装
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blog.