当前位置:网站首页>[embedded C foundation] Part 6: super detailed explanation of common input and output functions
[embedded C foundation] Part 6: super detailed explanation of common input and output functions
2022-07-28 13:01:00 【Black cat senior】
stdio.h Standard I / O library
putchar Output a character... To the terminal
getchar Get a character from the terminal
printf Output the format string to the terminal
scanf Read the format string from the terminal
puts Output a string to the terminal
gets Read a string from the terminal
1 putchar
int putchar (int ch);
Parameters :ch For the character to be output , The character is represented by its corresponding int Value for delivery .
Return value : Output success , Returns the ASCII Code value , Otherwise return to EOF.
function : Output a character... To the terminal
characteristic :1. Characters are output to the terminal
2. Output a character
Example 1:
Execution results :
Example 2:
#include <stdio.h>
int main边栏推荐
- 区块反转(暑假每日一题 7)
- C# static的用法详解
- Understanding of vite2
- Insufficient permission to pull server code through Jenkins and other precautions
- 机器学习实战-神经网络-21
- Xampp Chinese tutorial guide
- [base] what is the optimization of optimization performance?
- 05 pyechars basic chart (example code + effect diagram)
- Rolling update strategy of deployment.
- AI制药的数据之困,分子建模能解吗?
猜你喜欢

【嵌入式C基础】第2篇:进制转换与BCD编码

04 pyechars geographic chart (example code + effect diagram)

Summary: golang's ide:vscode usage

Machine learning practice - logistic regression-19
![[error prone points of C language] Part 4: detailed rules for storing structures in memory](/img/87/555e6db40f23b5bd4919bd7bdce776.png)
[error prone points of C language] Part 4: detailed rules for storing structures in memory

Interface control telerik UI for WPF - how to use radspreadsheet to record or comment

Change the document type in endnode and import it in word

如何在 TiDB Cloud 上使用 Databricks 进行数据分析 | TiDB Cloud 使用指南
![[Bi design teaching] STM32 and FreeRTOS realize low power consumption](/img/2b/3af85135e08599aaa425698c0e83aa.png)
[Bi design teaching] STM32 and FreeRTOS realize low power consumption

IO流再回顾,深入理解序列化和反序列化
随机推荐
What if the right button of win11 start menu doesn't respond
Chapter IX rest Service Security
Comments are not allowed in JSON
Change the document type in endnode and import it in word
Fundamentals of machine learning - principal component analysis pca-16
Xampp Chinese tutorial guide
【嵌入式C基础】第5篇:原码/反码/补码
Communication example between upper computer and Mitsubishi fn2x
What if win11 cannot recognize Ethernet
IO流再回顾,深入理解序列化和反序列化
AI制药的数据之困,分子建模能解吗?
Sliding Window
Vs code is not in its original position after being updated
leetcode 376. Wiggle Subsequence
云原生—运行时环境
【嵌入式C基础】第7篇:C语言流程控制详讲
How can non-standard automation equipment enterprises do well in product quality management with the help of ERP system?
04 pyechars geographic chart (example code + effect diagram)
Application and download of dart 3D radiative transfer model
Cloud native - runtime environment