当前位置:网站首页>C language tutorial
C language tutorial
2022-06-28 06:43:00 【Embedded workplace】
C Language is a universal 、 Process oriented computer programming language .1972 year , For transplantation and development UNIX operating system , Dennis · Ritchie designed and developed... At Bell Telephone lab C Language .
C Language is a widely used computer language , It is associated with Java Programming languages are just as popular , Both are widely used among modern software programmers .
Current and current C The language standard is C18 , Before it C Language standards include C17、C11...C99 etc. .
#include <stdio.h>
int main()
{
/* My first one C Program */
printf("Hello, World! \n");
return 0;
}- be-all C Language programs need to include main() function . Code from main() The function starts executing .
- /* ... */ Used to comment on .
- printf() Used to format output to screen .printf() Function in "stdio.h" The header file states .
- stdio.h It's a header file ( Standard I/o header file ) , #include It's a preprocessing command , Used to import header files . When the compiler encounters printf() Function time , If not found stdio.h The header file , A compilation error occurs .
- return 0; Statement is used to exit the program .


边栏推荐
猜你喜欢

FPGA - 7 Series FPGA selectio -09- io of advanced logic resources_ FIFO

CRC32概述以及实现和使用

浮动与定位

CAD二次开发+NetTopologySuite+PGIS 引用多版本DLL问题

微信小程序编译页面空白bug的原因

Online facing such an online world, the only limitation is our imagination

Unity packaging webgl uses IIS to solve the error

js正则表达式系统讲解(全面的总结)

FPGA - 7系列 FPGA SelectIO -07- 高级逻辑资源之ISERDESE2

选拔赛题目代码
随机推荐
AutoCAD C polyline self intersection detection
Camx架构开UMD、KMD log以及dump图的方式
AutoCAD C# 多段线小锐角检测
Promotion intégrale et ordre des octets de fin de taille
Singleton singleton mode
It will cost 700 yuan to realize this issue. Does anyone do it?
选拔赛题目代码
Cmake tips
5-minute NLP: summary of time chronology from bag of words to transformer
ROS rviz_satellite功能包可视化GNSS轨迹,卫星地图的使用
编译配置in文件
Error reporting - resolve core JS / modules / es error. cause. JS error
How to open UMD, KMD log and dump diagrams in CAMX architecture
Drop down list processing in Web Automation
强化学习——格子世界
编译原理期末复习
【Rust翻译】从头实现Rust异步执行器
[staff] arpeggio mark
声网 VQA:将实时互动中未知的视频画质用户主观体验变可知
Rust FFI 编程 - libc crate