About 176 results
Open links in new tab
  1. Making an Array to Hold Arrays of Character Arrays in C

    Apr 19, 2013 · you should learn what an array means. an array is basically a set of integer or character or anything. when you are storing a character value in an array, define it as, char array[] = {"somestringhere"}; now you want to store such arrays in …

  2. Want to store "char values" in array (in C language)

    Array of char data type is called Sting. You can take a string's input using scanf() and gets(). But if you use scanf(), the string will be input by pressing Space-bar or Enter.

  3. Array of Strings in C - GeeksforGeeks

    Jan 10, 2025 · In C, an array of strings is a 2D array where each row contains a sequence of characters terminated by a ‘\0’ NULL character (strings). It is used to store multiple strings in a single array. Let’s take a look at an example: An array of strings allows you to store and manipulate text in C. Here, arr_name: Name of the variable.

  4. c - Assigning strings to arrays of characters - Stack Overflow

    Feb 23, 2009 · At line 2, you're performing an assignment operation, and you cannot assign one array of characters to another array of characters like this. You'll have to use strcpy() or some kind of loop to assign each element of the array.

  5. How to store words in an array in C? - GeeksforGeeks

    Oct 18, 2019 · This article will help you understand how to store words in an array in C. To store the words, a 2-D char array is required. In this 2-D array, each row will contain a word each. Hence the rows will denote the index number of the words and the column number will denote the particular character in that word.

  6. What is Character Array in C? - Scaler Topics

    Oct 20, 2022 · Character arrays in C are used to store characters and represent strings. There are three ways to initialize a character array. Character array can be manipulated by using functions such as strlen() and strcat() etc..

  7. C Arrays Basics Explained with 13 Examples - The Geek Stuff

    Dec 12, 2011 · If array stores character elements then type of array is ‘char’. If array stores integer elements then type of array is ‘int’. Besides these native types, if type of elements in array is structure objects then type of array becomes the structure.

  8. String and Character Arrays in C Language - Studytonight

    Sep 17, 2024 · Learn how to create a string, character arrays in C, string input and output and string functions in C.

  9. Char Array in C | Character Array - Computer Science Junction

    Aug 15, 2021 · We use character arrays to store strings and then we can apply multiple operations on strings like modifying a string, copying a string, concatenation of a string to another, finding properties of strings like length of the string etc.

  10. Character Array in C - Naukri Code 360

    Dec 20, 2024 · To declare a character array, you specify the type of the array as char, followed by the array name & the size of the array enclosed in square brackets. Here's the basic syntax: char arrayName[arraySize];

  11. Some results have been removed