当前位置:网站首页>Standard C language summary 1
Standard C language summary 1
2022-07-28 07:07:00 【c7473168】
One . The header file : With .h ending , It stores auxiliary code , Most of them are descriptions of functions
#include The function is to import header files
#include <xxx.h>
<> Find the header file from the path specified by the system and import
#include "xxx.h"
"" First find the header file from the current working path , If it cannot be found, find and import from the path specified by the system
main function : The caller of the function is the operating system , Its return value is given to the operating system , Its value can reflect how the program ends , There are generally three types :
Positive numbers Something unusual happened ( The mistakes of others )
0 Everything is all right
negative There is an error ( Your own mistakes )
C File type of language :
.c Source file
.h The header file
.h.gch Compilation result file of header file , It will be used preferentially
.i Preprocessing files
.s Assembly files
.o Target file
.a Static library files
.so Shared library file
Branch statement
if( expression ) // Single branch
{
// Expression is true ( Nonzero ), Then execute the code here
}
else // Double branch
{
// Expression is false ( zero ), Then execute the code here
}
if( expression 1) // Multiple branches
{
// expression 1 It's true , Then execute the code here
}
else if( expression 2)
{
// expression 2 It's true , Then execute the code here
}
else
{
// If all the above expressions are false , Then finally execute the code here
}
1. Automorphic operator : ++/--
2. Arithmetic operator :+ - * / %
3. Relational operator :> < >= <= == !=
4. Logical operators : && || !
5. Ternary operator : a?b : c
The priority of each operator is in order
边栏推荐
- [learning notes] knowledge management
- 232(母)转422(公)
- shell脚本——“三剑客”之awk命令
- Firewall - iptables firewall (four tables and five links, firewall configuration method, detailed explanation of matching rules)
- Ubuntu MySQL setting remote access permissions
- 三层交换和VRRP
- JSON notes
- MOOC Weng Kai C language week 3: judgment and cycle: 1. Judgment
- PXE unattended installation management
- shell脚本——sort、uniq、tr、数组排序、cut、eval命令配置
猜你喜欢

Applet creation component

MySQL installation and use

metasploit渗透ms7_010练习

Esxi arm edition version 1.10 update

MOOC Weng Kai C language week 8: pointer and string: 1. Pointer 2. Character type 3. String 4. String calculation

Reptile learning summary

Icc2 analysis timing artifact analyze_ design_ violations

MOOC翁恺C语言第七周:数组运算:1.数组运算2.搜索3.排序初步

Principle and configuration of NAT and pat

Applets: lifecycle
随机推荐
shell脚本——“三剑客”之awk命令
Archery database audit platform deployment
Implementation method of Bert
Blue Bridge Cup square filling number
[learning notes] thread creation
MOOC Weng Kai C language week 8: pointer and string: 1. Pointer 2. Character type 3. String 4. String calculation
Reptile learning summary
主动扫描技术nmap详解
Bert的实现方法
JSON notes
[learning notes] linked list operation
远程访问云服务器上Neo4j等服务的本地网址
Esxi community network card driver
Shell script - "three swordsmen" awk command
[learning notes] coding ability
起点中文网 字体反爬技术 网页可以显示数字字母 网页代码是乱码或空格
Result number of filled briquettes
shell---sed语句练习
防火墙——iptables防火墙(四表五链、防火墙配置方法、匹配规则详解)
Remotely access the local website of services such as neo4j on the ECS