聲明 (編程)
在计算机编程中,声明是一种指定标识符属性的语言结构。 [1]声明最常用于子程序、变量、常量和类,但也可用于其他实体,例如枚举。 [1]声明通常還能指定資料類型(对于变量和常量)以及类型签名(对于函数)[2][1] 。
参考文献
- "A declaration specifies the interpretation and attributes of a set of identifiers. A definition of an identifier is a declaration for that identifier that:
- Mike Banahan. . GBdirect. [2011-06-08]. (原始内容存档于2022-04-12).
[A] declaration [...] introduces just the name and type of something but allocates no storage[...].
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.