C Notes For Professionals.
This C Notes for Professionals book is compiled from Stack Overflow Documentation, the content is written by the beautiful people at Stack Overflow. Text content is released under Creative Commons BY-SA, see credits at the end of this book whom contributed to the various chapters. Images may be copyright of their respective owners unless otherwise specified.
This is an unofficial free book created for educational purposes and is not affiliated with official С group(s) or company(s) nor Stack Overflow. All trademarks and registered trademarks are the property of their respective company owners.
Hello World.
To create a simple С program which prints "Hello, World" on the screen, use a text editor to create a new file (e.g. hello. с — the file extension must be . c) containing the following source code:
hello.c
#include <stdio.h>
int main(void)
{
puts("Hello, World");
return 9; >
Live demo on Coliru
Let's look at this simple program line by line
#include <stdio.h>
This line tells the compiler to include the contents of the standard library header file stdio.h in the program. Headers are usually files containing function declarations, macros and data types, and you must include the header file before you use them. This line includes stdio.h so it can call the function puts().
See more about headers.
int main(void)
This line starts the definition of a function. It states the name of the function (main), the type and number of arguments it expects (void, meaning none), and the type of value that this function returns (int). Program execution starts in the main() function.
Бесплатно скачать электронную книгу в удобном формате, смотреть и читать:
Скачать книгу C Notes For Professionals - fileskachat.com, быстрое и бесплатное скачивание.
Скачать pdf
Ниже можно купить эту книгу по лучшей цене со скидкой с доставкой по всей России.Купить эту книгу
Скачать - pdf - Яндекс.Диск.
Дата публикации:
Теги: С++
Смотрите также учебники, книги и учебные материалы:
Следующие учебники и книги:
- Deadline, роман об управлении проектами, Демарко Т., 2017
- CSS Notes For Professionals
- C Sharp Notes For Professionals
- C++, Notes For Professionals
Предыдущие статьи:
- Чистый Python, тонкости программирования для профи, Бейдер Д., 2018
- Python-cheatsheet Documentation, 2018
- Django, разработка веб-приложений на Python, Форсье Д., Биссекс Я., Чан У., 2010
- Обработка изображений с помощью OpenCV, Гарсия Г.Б., Суарес О.Д., Аранда Х.Л.Э., Терсеро Х.С., Грасиа И.С., Энано Н.В., 2016