Answers for "How to add strings in an array in C"

C
1

array of strings in c

char ch_arr[3][10] = {
                         {'s', 'p', 'i', 'k', 'e', '\0'},
                         {'t', 'o', 'm','\0'},
                         {'j', 'e', 'r', 'r', 'y','\0'}
                     };
Posted by: Guest on April-06-2021
0

how to add in array in c

#include <stdio.h>
int main(){
	char str_value[100];
	printf("Enter the string : ");
	scanf("%s",&str_value);
	printf("%s",str_value); 
	return 0;  
}
Posted by: Guest on September-08-2021

Code answers related to "How to add strings in an array in C"

Code answers related to "C"

Browse Popular Code Answers by Language