当前位置:网站首页>编写C语言的最简单小程序Hello world
编写C语言的最简单小程序Hello world
2022-06-30 16:00:00 【fen_fen】
1、编写demo.c程序
#include<stdio.h>
int main()
{
printf("Hello world!");
return 0;
} 
2、编译成可执行文件
$gcc demo.c -o demo

3、执行
[[email protected] testhu]# ./demo
Hello world!
边栏推荐
- Data security compliance has brought new problems to the risk control team
- HMS core audio editing service 3D audio technology helps create an immersive auditory feast
- A scheduled task deletes data at a specified time
- Jspreadsheet/ce JExcel: more data fields than the given fields (columns) will lead to blank columns. Solution
- MySQL8 NDB Cluster安装部署
- Compile u-boot source code for stm32p157 development board
- [untitled] write a student achievement and information management system in C language to realize the operation interface, clear screen display of current operation functions, reading and inputting st
- 期未课程设计:基于SSM的产品销售管理系统
- 列表变成向量 列表变向量 list vector
- List becomes vector list becomes vector list vector
猜你喜欢

“推广+搞笑剧情”,如何碰撞出爆款的火花?

互联网研发效能实践之去哪儿网(Qunar)核心领域DevOps落地实践
![[wechat applet] basic use of common components (view/scroll-view/wiper, text/rich-text, button/image)](/img/3b/05dbf03024088c5f94363f157a1701.png)
[wechat applet] basic use of common components (view/scroll-view/wiper, text/rich-text, button/image)
![[JVM] takes you to learn about the garbage collection mechanism (GC) in the JVM -- including diagrams](/img/47/2710772b9faff7835384054a9450a9.png)
[JVM] takes you to learn about the garbage collection mechanism (GC) in the JVM -- including diagrams

商单视频播放超2000万!农院改造为何屡被催更?

腾讯云的一场硬仗
![[C language] explain threads - thread separation function pthread_ detach](/img/d7/cce6c8afda85376eb569b1a5239c48.png)
[C language] explain threads - thread separation function pthread_ detach

canvas鼠标控制重力js特效

开发那些事儿:Linux系统中如何安装离线版本MySQL?

Exercise book of introduction to database system
随机推荐
leetcode:1042. 不邻接植花【随机填入符合要求的 + 后面不会形成矛盾 + set.pop】
parker比例溢流阀RS10R35S4SN1JW
浅析搭建高速公路视频监控平台的建设方案及必要性
解决方法:STM32使用cJSON解析数据失败
Shutter music recording playing audioplayers
理解现货白银走势的关键
Pref usage record
Nut cloud - sync files on your mobile hard drive on your new computer
【C语言】详解线程 — 通过 “加锁” 解决并发程序引起的共享内存问题
基于SSM实现毕业设计管理系统
AcWing 第 57 场周赛
Cmakelists Basics
Implementation of aut, a self-developed transport layer protocol for sound network -- dev for dev column
[demo] write file circularly
ROC-RK3566-PC使用10.1寸IPS触摸屏显示
巩固入门-C#基础变量和常量
将 EMQX Cloud 数据通过公网桥接到 AWS IoT
24: Chapter 3: develop pass service: 7: user defined exceptions (to represent errors in the program); Create graceexceptionhandler to handle exceptions globally and uniformly (build JSON data of corre
svg实现的订票UI效果
【C语言】详解线程 — 线程分离函数 pthread_detach