手机版
热门标签
站点地图
我要投稿
广告合作
联系我们
搜 索
广告位招租
广告位招租
切换导航
首页
编程教程
编程导航
编程百科
编程问答
编程博文
编程实例
硬件设备
网络运营
软件教程
移动数码
办公软件
操作系统
网络运维
设计教程
技术频道
▸ 编程语言
▸ 前端开发
▸ 移动开发
▸ 开发工具
▸ 程序设计
▸ 行业应用
▸ CMS系统
▸ 服务器
▸ 数据库
公众号推荐
微信公众号搜
"智元新知"
关注
微信扫一扫可直接关注哦!
pointer-arithmetic
pointer-arithmetic专题提供pointer-arithmetic的最新资讯内容,帮你更好的了解pointer-arithmetic。
如何了解此代码段的指针行为
我知道这段代码没有多大意义,但我只是想知道这段代码中的指针是如何工作的。 <pre><code>int main() {
作者:佚名 时间:2022-08-23
难以理解指向指针增量值的指针
请参考以下C程序,并在递增指针(即p)的同时正确地将其递增4个字节。如果我尝试增加指向指针的指
作者:佚名 时间:2023-06-28
无法将整数数组作为参数传递给局部参数为字符指针的函数
我有一个<code>main</code>函数,它声明一个整数数组。我想将此数组传递给参数类型为<code>char *</code>的函
作者:佚名 时间:2022-08-16
如何通过指针访问结构的第二个成员?
我已经看到struct的第一个地址同时是该结构的第一个成员的第一个地址。现在我想了解的是,为什么我
作者:佚名 时间:2022-08-15
printf产生异常响应
我正在练习指针算术,但是printf语句的响应令人困惑。我的理解是,应该先打印101,然后再递增。但是
作者:佚名 时间:2022-08-15
将数据从数组引用到C中的另一个数组
我想引用新数组以从C代码中的另一个数组进行寻址,如下所示: <pre><code>int main() { int a[6] = {1,2,3,4
作者:佚名 时间:2022-08-14
为什么不能将两个std :: vector迭代器求和?
这更多是关于C ++的好奇心问题,该问题是在学习如何找到迭代器引用的索引之后出现的。 给出两
作者:佚名 时间:2022-08-12
将指针转换为char指针以进行算术运算是否安全又可移植?
考虑以下代码段(对于C和C ++语言)是: <pre><code>int t[2] = { 0, 1 }; *( (int *)( (char *)t + sizeof(int) ) ) = 2; </
作者:佚名 时间:2022-08-12
进行对齐违规转换后,指针算术是否仍然定义正确?
我知道,具有对齐冲突的指针强制转换的结果一旦被取消引用就会调用未定义的行为。 但是仅用于
作者:佚名 时间:2022-08-11
是否在特定实现上定义了两个数组之间的指针差异?
根据C标准: <blockquote> 当减去两个指针时,两个指针都应指向 相同的数组对象,或者在数组对象的
作者:佚名 时间:2022-08-10
放置 new &data[i] 而不是 data + i 是 UB 吗?
考虑以下代码: <pre class="lang-cpp prettyprint-override"><code>#include <string> struct S { std::string str; }; int ma
作者:佚名 时间:2022-08-06
分配给具有不同值的参数的C指针参数
我试图用C语言编写一个看似微不足道的函数,以获取整数数组中的最大值。我正在尝试使用指针来获得
作者:佚名 时间:2022-06-15
通过ref传递数组会导致编译器警告-如何在此处正确使用指针算术?
<pre><code>void foo(int **arr) { **arr = 5; // works fine, no warnings and myArray[0] is 5 after call. *(arr+5) = 5; //warning
作者:佚名 时间:2022-06-22
使用scanf时的指针数组
在我的代码中,我使用了这样的指针数组。 <pre><code>arr = (int*)malloc(N * sizeof(int)); for (i = 0; i <
作者:佚名 时间:2022-06-12
C ++数组指针如何具有不同的位置,但指向相同的元素?
我知道保存数组的变量存储了数组的地址,对其上的任何索引都对其执行指针运算。在修读基础知识的
作者:佚名 时间:2022-06-10
通过使用指针数学运算器的指针访问二维数组:数组类型为必需[Delphi]
我很高兴应该特别注意使用<em> Delphi </em>中的指针数学,但我仍然不明白我在哪里错了。 让我们看一下
作者:佚名 时间:2022-06-08
无法理解使用strchr来获取C中字符串中字符的位置
此代码将以字符串形式输出字符的索引: <pre><code>#include <stdio.h> #include <string.h> int main(void){
作者:佚名 时间:2022-06-08
在null指针上使用static_cast时,这里的惯用法是什么?
静态分析将该代码标记为nullPointerArithmetic: <pre><code>static_cast<BYTE*>(NULL) + p_row_fields->offsets.back()
作者:佚名 时间:2022-06-08
减去char *a-char *0会发生什么
使用C语言。当我们从char *中减去Null指针时会发生什么? <pre><code>int i = (char *)a - (char *)0; </code></pre>
作者:佚名 时间:2022-06-07
为什么此指针显示最后一个元素?
请向我解释<code>b</code>指针如何显示最后一个元素。 每次,无论数组有多长,它都会打印出最后一
作者:佚名 时间:2022-06-06
上一页
1
2
3
4
下一页
小编推荐
苹果市值2025年有望达4万亿美元
• 苹果iPhone屏幕划痕如何去除?7个法子可
• iPhone SE 4首发!苹果自研5G基带第一个
• 史无前例:iPhone 16系列电池容量公布
• 首批iPhone 16在路上了!苹果已发货 明
• 绝!iPhone16开卖:北京上海用户暴雨中
• iPhone 18用上台积电2nm芯片!但苹果又
• 粉碎不支持iPhone谣言!微信官宣:朋友
热门标签
更多
python
JavaScript
java
HTML
PHP
reactjs
C#
Android
CSS
Node.js
sql
r
python-3.x
MysqL
jQuery
c++
pandas
Flutter
angular
IOS
django
linux
swift
typescript
路由器
JSON
路由器设置
无线路由器
h3c
华三
华三路由器设置
华三路由器
电脑软件教程
arrays
docker
软件图文教程
C
vue.js
laravel
spring-boot