Skip to content

Latest commit

 

History

History
24 lines (22 loc) · 1.02 KB

File metadata and controls

24 lines (22 loc) · 1.02 KB
title Internal Linkage | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-language
ms.tgt_pltfrm
ms.topic article
dev_langs
C++
helpviewer_keywords
internal linkage
linkage [C++], internal
ms.assetid 80be7b51-c930-43db-94d6-4f09a64077bf
caps.latest.revision 6
author mikeblome
ms.author mblome
manager ghogen

Internal Linkage

If the declaration of a file-scope identifier for an object or a function contains the storage-class-specifier static, the identifier has internal linkage. Otherwise, the identifier has external linkage. See Storage Classes for a discussion of the storage-class-specifier nonterminal.

Within one translation unit, each instance of an identifier with internal linkage denotes the same identifier or function. Internally linked identifiers are unique to a translation unit.

See Also

Using extern to Specify Linkage