I feel silly for asking, but I had trouble finding my answer. How do I re-assign "Rose" to "Douglas"? It seems like I have to use a loop.
#include <stdio.h>
int main() {
char arr[3][12]= { "Rose", "India", "technologies" };
printf("Array of String is = %s,%s,%s\n", arr[0], arr[1], arr[2]);
arr[0][0] = {"Douglas"};
printf("Array of String is = %s,%s,%s\n", arr[0], arr[1], arr[2]);
return(0);
}
arr[2], since "technologies" requires 13 characters. Your compiler should be warning you about this.arr[0][0] = {"Douglas"};part.void mainand<conio.h>in that example should ring very loud alarm bells, i.e. poor quality Indian college C code.