当前位置:网站首页>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
边栏推荐
- 凡人修仙学指针-1
- arduino+水位传感器+led显示+蜂鸣器报警
- Set container
- 最新坦克大战2022-全程开发笔记-3
- The latest tank battle 2022 - full development notes-3
- 20220211-CTF-MISC-006-pure_ Color (use of stegsolve tool) -007 Aesop_ Secret (AES decryption)
- The overseas sales of Xiaomi mobile phones are nearly 140million, which may explain why Xiaomi ov doesn't need Hongmeng
- 6. Function recursion
- C语言实现扫雷游戏(完整版)
- TYUT太原理工大学2022数据库大题之概念模型设计
猜你喜欢
Alibaba cloud microservices (III) sentinel open source flow control fuse degradation component
西安电子科技大学22学年上学期《基础实验》试题及答案
One article to get UDP and TCP high-frequency interview questions!
TYUT太原理工大学2022软工导论大题汇总
The latest tank battle 2022 full development notes-1
Arduino+ water level sensor +led display + buzzer alarm
Questions and answers of "Fundamentals of RF circuits" in the first semester of the 22nd academic year of Xi'an University of Electronic Science and technology
There is always one of the eight computer operations that you can't learn programming
最新坦克大战2022-全程开发笔记-1
Questions and answers of "basic experiment" in the first semester of the 22nd academic year of Xi'an University of Electronic Science and technology
随机推荐
MySQL 30000 word essence summary + 100 interview questions, hanging the interviewer is more than enough (Collection Series
TYUT太原理工大学2022软工导论考试题型大纲
Tyut outline of 2022 database examination of Taiyuan University of Technology
Atomic and nonatomic
Alibaba cloud microservices (IV) service mesh overview and instance istio
凡人修仙学指针-2
9. Pointer (upper)
8.C语言——位操作符与位移操作符
The latest tank battle 2022 full development notes-1
3. Number guessing game
8. C language - bit operator and displacement operator
TYUT太原理工大学2022数据库考试题型大纲
[Topic terminator]
3. C language uses algebraic cofactor to calculate determinant
1. C language matrix addition and subtraction method
Cloud native trend in 2022
2. C language matrix multiplication
12 excel charts and arrays
3.C语言用代数余子式计算行列式
C语言入门指南