C 语言实例 - 输出单个字符

C 语言教程 · 2019-02-20 13:43:06

使用 printf()%c 格式化输出一个字符。

实例

#include <stdio.h> int main() { char c; // 声明 char 变量 c = 'A'; // 定义 char 变量 printf("c 的值为 %c", c); return 0; }

输出结果:

c 的值为 A

点击查看所有 C 语言教程 文章: https://codercto.com/courses/l/17.html

查看所有标签

Text Algorithms

Text Algorithms

Maxime Crochemore、Wojciech Rytter / Oxford University Press / 1994

This much-needed book on the design of algorithms and data structures for text processing emphasizes both theoretical foundations and practical applications. It is intended to serve both as a textbook......一起来看看 《Text Algorithms》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具