LoginSignup
0
0

C言語で文字列の二次元配列を定義して要素を出力する方法。

Posted at

参考にした問題

学んだこと

・定義した文字列の要素を全て出力する。

#include <stdio.h>
int	main(void)
{
	char str[5][9] = {
		"good",
		"morning",
		"paiza",
		"813",
		"pa13",
	};
   
	for (int i = 0; i < 5; i++)
	{
	    printf("%s\n",str[i]);
	}

	return (0);
}

0
0
4

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0