About 3,330,000 results
Open links in new tab
  1. Initializing 2D char array in C - Stack Overflow

    Nov 15, 2014 · I need help initializing a 2D char array that will all be initialized to some value (in this case '0'). I have tried many different methods and I am pulling my hair out.

  2. How to Initialize & Declare 2D character array in C? - CodinGeek

    Apr 2, 2017 · In this C Programming tutorial, we will discuss 2D character arrays in detail and how to declare, initialize and use 2D character arrays or String arrays.

  3. Multidimensional Arrays in C - 2D and 3D Arrays - GeeksforGeeks

    Jul 25, 2025 · A multi-dimensional array in C can be defined as an array that has more than one dimension. Having more than one dimension means that it can grow in multiple directions. …

  4. Two Dimensional Array of Characters in C - TechAlmirah

    Understanding how to work with 2D character arrays is essential for efficient programming in C. In this article, we will explore the concept of a two-dimensional array of characters, its …

  5. How to Initialize Char Array in C - Delft Stack

    Feb 2, 2024 · The curly braced list can also be utilized to initialize two-dimensional char arrays. In this case, we declare a 5x5 char array and include five braced strings inside the outer curly …

  6. Two Dimensional Array of Characters in C - Stack Overflow

    in your code, you only declare char data type to be one dimensional and thus it will always overwrite the previous input,that's why the result is the last input printed 5 times.

  7. How to Initialize a 2D Array in C? - GeeksforGeeks

    Jul 23, 2025 · In C, a 2D Array is a type of multidimensional array in which data is stored in tabular form (rows and columns). It has two dimensions so it can store the data and can …

  8. C 2D Arrays: The Ultimate Guide to Flawless Code in 2025

    Aug 25, 2025 · Tired of boring C tutorials? Let's CRUSH C 2D arrays! We'll go from basic grids to building a full Tic-Tac-Toe game, FAST. No fluff, just code.

  9. Two-dimensional array of character strings in C

    Feb 3, 2024 · When you say "I want to store a 2d array or character strings in C", do you mean that you will be able to use your array like this?

  10. 2D char array in C: A comprehensive guide - HatchJS.com

    Learn how to create and use a 2D char array in C with this easy-to-follow guide. Includes examples and code snippets.