About 2,450,000 results
Open links in new tab
  1. Convert char array to string use C - Stack Overflow

    Jan 16, 2013 · I need to convert a char array to string. Something like this: char array [20]; char string [100]; array [0]='1'; array [1]='7'; array [2]='8'; array [3]='.'; array [4]='9'; ...

  2. 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 …

  3. How to Convert a Character Array into a String in C - Tutorial Kart

    In C, a character array can be converted into a string by ensuring it is null-terminated or by using standard library functions like strcpy() or sprintf(). Strings in C are represented as arrays of …

  4. C Array of Strings - Online Tutorials Library

    To declare a string, we use the statement −. char string = "Hello"; To declare an array of strings, you need to declare a two-dimensional array of character types, where the first subscript is the …

  5. C: How to Convert a Char Array to a String - HatchJS.com

    To convert a char array to a string using the `String.Join ()` method, you can use the following syntax: `String.Join (“delimiter”, charArray)`. To convert a char array to a string using the …

  6. Convert int array to string using C - Stack Overflow

    Jun 13, 2020 · You need to convert the integer into equivalent char using the ascii table subtraction and then strcat to the main string. To convert the array to a string, you should use …

  7. Char Array to String – Programming in ANSI C Language

    Nov 29, 2023 · In this chapter we shall discuss these operations in detail and examine libary functions that implement them. C language does not support strings as a data type. However, …

  8. convert an array to a string in C - Code Snippets with explanation

    Jan 13, 2023 · This code converts an array to a string in C. First, the code creates two character arrays, one named arr [] and the other named str []. Then, the for loop goes through the array …

  9. How to Convert an Integer to a String in C? - GeeksforGeeks

    Aug 16, 2024 · To convert an integer to a string, we can use the sprintf function in C. This function prints/outputs a formatted string in a string buffer. By specifying the %d format specifier in the …

  10. Array of Strings in C - Delft Stack

    Oct 12, 2023 · This article will demonstrate multiple methods about how to declare an array of strings in C. Strings in C are simply a sequence of chars stored in a contiguous memory …

  11. Some results have been removed
Refresh