69,336
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
#include <string.h>
#define SIZE 256
#define LIM 2
void print_string(char **st, int lim);
int main(void)
{
char input[LIM][SIZE] = {
"my",
"be"
};
print_string(input, LIM);
return 0;
}
void print_string(char **st, int lim)
{
int i;
for(i = 0; i < lim; i++)
puts(st[i]);
}
#include <stdio.h>
#include <string.h>
#define SIZE 256
#define LIM 2
void print_string(char st[][SIZE], int lim);
int main(void)
{
char input[LIM][SIZE] = {
"my",
"be"
};
print_string(input, LIM);
return 0;
}
void print_string(char st[][SIZE], int lim)
{
int i;
for (i = 0; i < lim; i++)
puts(st[i]);
}