全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Array, array-to-pointer conversion?

又称: array (C) · array-to-pointer conversion

Definition 4.3 University Computer Science — Year 1 · 第 4 章 — Pointers and Arrays

An array of C, declared int a[5], is a block of a fixed number of elements of one type, stored contiguously in memory; its size is fixed when it is created. In almost every expression, the name of an array is converted into a pointer to its first element: this is the array-to-pointer conversion. The exceptions are sizeof a and &a, where a stays the whole array.

在原文中阅读 →