HACKER
TALK
Home
Channels
beta
Bookmarks
Messages
Notifications
Sign In
Comment
Whisper
指针所占大小与偏移之间的关系(求助)
指针所占大小由计算机位数决定,与其指向的数据类型无关,P是指针偏移到其指向位置的下一个内存单元。假如我定义int arr={0,1,2,3,4,5,6,7,8,};int p=arr;那么对利用p可以
Whisper
Whisper
·3 years ago

在64位上也可以编译32位我明白。我现在就是明白p++偏移是按照类型所占大小来偏移的

Replies
Whisper
Whisper
Joined 3 years ago
Message
Terms of ServicePrivacy PolicyCookie PolicyMarkdown SyntaxUser PointsUser Feedback© 2025 Shware Inc.