summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDivay Prakash <divayprakash@users.noreply.github.com>2018-10-18 22:19:16 +0530
committerGitHub <noreply@github.com>2018-10-18 22:19:16 +0530
commit3e0784673026c4f4b4fb985bbbc069b1f6b430e0 (patch)
treeb36c6e4d0b9aa52cdcd96ce36902753ccec83887
parentff4bac98a33b167a25f4ba9ba67e22a993f98840 (diff)
parent3cfb769bfbc42f5e4236401707913f6725a3070c (diff)
Merge pull request #3305 from mbiondi17/master
[c++/en] Addresses #3009, corrects C++ headers description
-rw-r--r--c++.html.markdown10
1 files changed, 8 insertions, 2 deletions
diff --git a/c++.html.markdown b/c++.html.markdown
index 9d6470be..8be5a278 100644
--- a/c++.html.markdown
+++ b/c++.html.markdown
@@ -71,10 +71,16 @@ void func(); // function which may accept any number of arguments
// Use nullptr instead of NULL in C++
int* ip = nullptr;
-// C standard headers are available in C++,
-// but are prefixed with "c" and have no .h suffix.
+// C standard headers are available in C++.
+// C headers end in .h, while
+// C++ headers are prefixed with "c" and have no ".h" suffix.
+
+// The C++ standard version:
#include <cstdio>
+//The C standard version:
+#include <stdio.h>
+
int main()
{
printf("Hello, world!\n");