1
I am learning character matrix and wanted to make a simple program in which I create a character matrix 200x100, put a string at position 0 and printed.
This is part of a larger program that I’m doing, but I need to understand how to insert a string in the character matrix to make.
I know that for the user to enter just put the gets(x[i])
, but I need to put by the code.
#include <stdio.h>
#include <conio.h>
int main(){
char mat[200][100];
mat[0] = "paulo";
printf("%s", mat[0]);
getch();
return 0;
}