Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 1.08 KB

punctuators-cpp.md

File metadata and controls

32 lines (28 loc) · 1.08 KB
Error in user YAML: (<unknown>): did not find expected ',' or ']' while parsing a flow sequence at line 9 column 14
---
title: "Punctuators (C++) | Microsoft Docs"
ms.custom: ""
ms.date: "11/04/2016"
ms.reviewer: ""
ms.suite: ""
ms.technology: ["devlang-cpp"]
ms.tgt_pltfrm: ""
ms.topic: "language-reference"
f1_keywords: [";", ", "{", "}", "(", ")", "[", "]", "!", "%", "&#94;", "&#42;", "&#34;"]
dev_langs: ["C++"]
helpviewer_keywords: ["punctuators [C++]"]
ms.assetid: 1521564c-a977-488a-9490-068079897592
caps.latest.revision: 6
author: "mikeblome"
ms.author: "mblome"
manager: "ghogen"
---

Punctuators (C++)

Punctuators in C++ have syntactic and semantic meaning to the compiler but do not, of themselves, specify an operation that yields a value. Some punctuators, either alone or in combination, can also be C++ operators or be significant to the preprocessor.

Any of the following characters are considered punctuators:

! % ^ & * ( ) - + = { } | ~  
[ ] \ ; ' : " < > ? , . / #  

The punctuators [ ], ( ), and { } must appear in pairs after translation phase 4.

See Also

Lexical Conventions