当前位置:网站首页>Printf function
Printf function
2022-06-13 06:04:00 【You must know this and do it yourself】
printf() yes C Language standard library functions , Used to output the formatted string to On the screen , The output rule is :
1、 When a newline character is encountered , Such as :
printf("test printf function one");
printf("test printf function tow\n");
After executing this statement ,“test printf function onetest printf function tow” Instantly on the screen .
2、 The content displayed exceeds 1024 Byte time , Such as :
printf(“......”);
If “......” The total length of Greater than 1024 bytes , Although there is no line break at this time , The displayed content will also be displayed directly on the screen .
3、 Yes fflush Function time , The displayed content is immediately displayed on the screen , Such as :
printf(“test printf function”);
fflush(stdout);
4、 Program execution scan When you need to input characters from a standard input device , Such as :
printf(“test printf function”);
......
scan(“enter number:%d”,&iNum);
scan Will cause content to be displayed on the screen .
5、 At the end of the program , Causes the displayed content to be output to the screen .
边栏推荐
- Leetcode- key formatting - simple
- USB debugging assistant 20181018 (v1.3)
- Leetcode- student attendance record i- simple
- 【MySQL】基础知识小复习
- Vagrant virtual machine installation, disk expansion and LAN access tutorial
- Timeout thread log for tongweb
- [to]12 common IP commands in the iproute installation package
- Complete USB debugging assistant
- 【ONE·Data || 带头双向循环链表简单实现】
- Explanation of sentinel series' features, composition and deployment
猜你喜欢
Sentinel series hot spot current limiting
You still can't remotely debug idea? Come and have a look at my article. It's easy to use
USB debugging assistant (20191028)
1+1>2,Share Creators可以帮助您实现
Why do so many people hate a-spice
Annotation only integration SSM framework
MySQL trigger
2021.9.30学习日志-postman
Timeout thread log for tongweb
1 Introduction to drools rule engine (usage scenarios and advantages)
随机推荐
軟件測試——接口常見問題匯總
Misunderstanding of tongweb due to ease of use
移动端适配方案
【自动化测试】Cypress手册
[to]12 common IP commands in the iproute installation package
Leetcode- intersection of two arrays - simple
Swift property property
自我总结ing
Leetcode- reverse string ii- simple
Security baseline check script - the road to dream
DLL bit by bit
The SQL file of mysql8.0 was imported into version 5.5. There was a pit
php 分布式事务 原理详解
Leetcode- third largest number - simple
2021.9.29 learning log restful architecture
Shardingsphere JDBC < bind table > avoid join Cartesian product
1+1>2,Share Creators可以帮助您实现
[turn] explain awk (2)_ Combining formatted output with built-in variables to realize requirements
Class conflicts caused by tongweb Enterprise Edition and embedded Edition
= = relation between int and integer