1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-18 20:41:29 +02:00

Merge pull request #3305 from mbiondi17/master

[c++/en] Addresses #3009, corrects C++ headers description
This commit is contained in:
Divay Prakash
2018-10-18 22:19:16 +05:30
committed by GitHub

View File

@@ -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");