#include <stdio.h>
#include <ctype.h>
#define ROW 5
#define COL 10
int startWith(const char *s, const char ch);
int main(void)
{
char arr2d[ROW][COL] = {"c", "C++", "Csharp", "java", "php"};
int i;
char ch = 'C';
for (i = 0; i < ROW; i++)
if (startWith(arr2d[i], tolower(ch)) || startWith(arr2d[i], toupper(ch)))
printf("%s\n", arr2d[i]);
return 0;
}
int startWith(const char *s, const char ch)
{
if (s[0] == ch) return 1;
return 0;
}
/*
run:
c
c++
csharp
*/