LoginSignup
0
0

C言語で文字列の二次元配列の定義する方法。

Posted at

参考にした問題

学んだこと

・文字列の二次元配列の定義する方法。
・文字列が何種類あるか判定する方法。

書いたコード

#include <stdio.h>
int	main(void)
{
	char str[4][6] = {
	    "Hello",
        "paiza",
        "1234",
        "pa13"
	};
    
    int count = 0;
    count =  sizeof(str) / sizeof(str[0]);
    printf("%d",count);
	return (0);
}

0
0
0

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