can i have a table with strings in c

Certainly! Here is an example of how you can create a table with strings in C:

#include <stdio.h>
#include <string.h>

#define MAX_SIZE 100

int main() {
    char strings[MAX_SIZE][MAX_SIZE];
    int numStrings;

    printf("Enter the number of strings: ");
    scanf("%d", &numStrings);

    printf("Enter %d strings:\n", numStrings);
    for (int i = 0; i < numStrings; i++) {
        scanf("%s", strings[i]);
    }

    printf("The entered strings are:\n");
    for (int i = 0; i < numStrings; i++) {
        printf("%s\n", strings[i]);
    }

    return 0;
}

In this example, we define a two-dimensional array strings to store the strings. The maximum size of each string is defined as MAX_SIZE. The number of strings to be entered is stored in the variable numStrings.

First, we prompt the user to enter the number of strings they want to input. Then, we use a loop to read the strings from the user and store them in the strings array. Finally, we print out the entered strings using another loop.

Note that in this example, the maximum size of the array is set to 100 for both the number of strings and the length of each string. You can modify these values according to your requirements.

I hope this helps! Let me know if you have any further questions.