当前位置:网站首页>C language Getting Started Guide
C language Getting Started Guide
2022-07-06 13:29:00 【Mr. 30000 lines】
List of articles
Chapter two C Language learning framework and simple code
List of articles
Preface
With C Language learning tools this chapter will build a C Language learning framework
One 、C Language content
C The content of language is simply classified as follows :
1. keyword 2. The operator 3. Branch and loop statements 4. function 5. Array 6. The pointer
7. Structure 8. File operations
( Keywords and operators will be explained in specific code blocks )
Two 、 Simple code
1. Simple input and output
The code is as follows ( Example ):
#include <stdio.h> int main() { printf("hallo"); return 0; }
Code block parsing :
As shown in figure, 1.
stay C The language program must contain a main function, that is main function , because C Language programs start from mian Function to , Also in main End of the function , The lack of main Function programs cannot be executed , all main The importance of functions is self-evident .
As shown in figure, 2.
printf Is an output function using printf You can print the contents in double quotation marks on the screen, and the results are as follows :
summary
All procedures are from main Function to , from main End of the function
边栏推荐
- TYUT太原理工大学2022数据库考试题型大纲
- Summary of multiple choice questions in the 2022 database of tyut Taiyuan University of Technology
- Implement queue with stack
- Caching mechanism of leveldb
- 【快趁你舍友打游戏,来看道题吧】
- Application architecture of large live broadcast platform
- 12 excel charts and arrays
- Relational algebra of tyut Taiyuan University of technology 2022 database
- MySQL Database Constraints
- C language to achieve mine sweeping game (full version)
猜你喜欢
Decomposition relation model of the 2022 database of tyut Taiyuan University of Technology
Rich Shenzhen people and renting Shenzhen people
Introduction and use of redis
System design learning (III) design Amazon's sales rank by category feature
7.数组、指针和数组的关系
Counter attack of flour dregs: redis series 52 questions, 30000 words + 80 pictures in detail.
3. Number guessing game
Wei Pai: the product is applauded, but why is the sales volume still frustrated
IPv6 experiment
There is always one of the eight computer operations that you can't learn programming
随机推荐
【快趁你舍友打游戏,来看道题吧】
Network layer 7 protocol
Introduction and use of redis
Tyut outline of 2022 database examination of Taiyuan University of Technology
TYUT太原理工大学2022数据库大题之概念模型设计
The latest tank battle 2022 - Notes on the whole development -2
(super detailed II) detailed visualization of onenet data, how to plot with intercepted data flow
Mortal immortal cultivation pointer-2
Questions and answers of "signal and system" in the first semester of the 22nd academic year of Xi'an University of Electronic Science and technology
【九阳神功】2020复旦大学应用统计真题+解析
IPv6 experiment
Redis cache obsolescence strategy
View UI Plus 发布 1.2.0 版本,新增 Image、Skeleton、Typography组件
Alibaba cloud microservices (I) service registry Nacos, rest template and feign client
Redis的两种持久化机制RDB和AOF的原理和优缺点
Set container
TYUT太原理工大学2022软工导论考试题型大纲
Arduino+ water level sensor +led display + buzzer alarm
5. Download and use of MSDN
Abstract classes and interfaces