C primer plus 第六版 第六章 第一题 编程练习答案

版权声明:转载请注明来源~ https://blog.csdn.net/Lth_1571138383/article/details/83098470

鄙人关于本书编程练习的Github地址: Github 地址 <--- 戳这里

废话不多说。上代码。

#include<stdio.h>
#define leng 26
int main(void)
{
	int i = 0;
	int j = 0;
	char words[leng]={};

	for (i = 'a'; i <= 'z'; i++,j++)
	{
		words[j] = i;
	}

	for ( i = 0; i < leng; i++)
	{
		printf("%5c", words[i]);
	}
	
	return 0;
}

猜你喜欢

转载自blog.csdn.net/Lth_1571138383/article/details/83098470
今日推荐