・文字列の二次元配列の定義する方法。 ・文字列が何種類あるか判定する方法。
#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); }
Register as a new user and use Qiita more conveniently