We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 329c49d + a465ba7 commit 20b3126Copy full SHA for 20b3126
docs/error-messages/compiler-warnings/compiler-warning-level-3-c4066.md
@@ -1,13 +1,29 @@
1
---
2
description: "Learn more about: Compiler Warning (level 3) C4066"
3
title: "Compiler Warning (level 3) C4066"
4
-ms.date: "11/04/2016"
+ms.date: "03/06/2024"
5
f1_keywords: ["C4066"]
6
helpviewer_keywords: ["C4066"]
7
-ms.assetid: f2ae6465-a140-459a-87fd-c8f25fafedd4
8
9
# Compiler Warning (level 3) C4066
10
11
characters beyond first in wide-character constant ignored
12
13
The compiler processes only the first character of a wide-character constant.
+
14
+```cpp
15
+// C4066.cpp
16
+// compile with: /W3
17
+#include <iostream>
18
19
+int main()
20
+{
21
+ wchar_t wc = L'AB'; // C4066
22
23
+ std::wcout << wc;
24
+}
25
+```
26
27
+```output
28
+A
29
0 commit comments