#include <stdio.h>
#include <stdlib.h>

int main(){
    int a[] = {0,0,1,0,0,1,0,2};
    const char *table = "0123456789";
    size_t size = sizeof(a)/sizeof(*a);
    char *b = malloc(size+1);
    int i;
    for(i=0;i<size;++i)
        b[i]=table[a[i]];
    b[i]='\0';
    printf("%s\n", b);
    free(b);
    return 0;
}
Answer from BLUEPIXY on Stack Overflow
๐ŸŒ
Quora
quora.com โ€บ In-C-how-do-you-convert-a-list-of-strings-to-string
In C++, how do you convert a list of strings to string? - Quora
Answer (1 of 4): If the list is long, it is more efficient to pre-allocate the target string. [code]std::list l{ "abc", "def", "xyz", ...}; // many strings size_t total = 0; for( auto s: l) total += s.size(); std::string all; all.reserve(total+1); for (auto s : l) all.append(s); ...
๐ŸŒ
Lua Ternary
nachtimwald.com โ€บ posts โ€บ string list in c
String List in C | John's Blog
April 22, 2020 - Now would be a good time go back and put all the various comparison functions into a common file. Especially since the string hashtable uses functions too. list_str_t *list_str_create(list_str_flags_t flags) { list_flags_t lflags = LIST_NONE; list_cbs_t cbs = { str_eq, (list_copy_cb)strdup, free }; if (flags & LIST_STR_CASECMP) cbs.leq = str_eq; if (flags & LIST_STR_SORT) lflags != LIST_SORT; return (list_str_t *)list_create(&cbs, lflags); }
Discussions

c - How to convert a list to a string - Stack Overflow
I need this for printing the values of list in embedded system lcd screen where normal print options aren't available. Couldn't find similar example from www.stackoverflow.com. Vice versa there were many solutions to convert a string into a list. More on stackoverflow.com
๐ŸŒ stackoverflow.com
.net - Convert a list to a string in C# - Stack Overflow
You can try any of the three ways mentioned here. ... @Niton: What Marko is trying to saying is that there is a bit of ambiguity about what a List string is supposed to look like. In the example you gave, all the items look like strings. However, lists can also be made of objects, which may ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
C# List<string> to string with delimiter - Stack Overflow
Is there a function in C# to quickly convert some collection to string and separate values with delimiter? For example: List string names_together = "John, Anna, Monica" More on stackoverflow.com
๐ŸŒ stackoverflow.com
Convert string to list
hello guys Iโ€™m new to Ui path question:- Manoj Sachin Prem Ravi output:- {Manoj, Sachin, Prem, Ravi} or [Manoj, Sachin, Prem, Ravi] need output like this so please help guys More on forum.uipath.com
๐ŸŒ forum.uipath.com
13
0
June 29, 2023
๐ŸŒ
W3Schools
w3schools.com โ€บ c โ€บ c_strings.php
C Strings
Since strings are actually arrays in C, you can access a string by referring to its index number inside square brackets [].
๐ŸŒ
Dot Net Perls
dotnetperls.com โ€บ convert-list-string
C# - Convert List to String - Dot Net Perls
Here we use the StringBuilder class to convert a List to a single string.
๐ŸŒ
YouTube
youtube.com โ€บ c plus+
How to Convert List String to String in C# - YouTube
Convert a list to a string in C# C# Convert List to StringConvert a List to a String using delimiter in C# How to convert a list to string in C# Convert List...
Published: November 22, 2022
Views: 1K
๐ŸŒ
Quora
quora.com โ€บ How-do-I-convert-an-array-list-to-a-string-in-C-NET
How to convert an array list to a string in C# .NET - Quora
Answer (1 of 8): Abhishek Jain answer is good. But whenever you are concatenating over a loop, use StringBuilder instead of String. If your List is an list of string array, you can use String.Join method, which is the most memory efficient way to join arrays of strings.
Find elsewhere
๐ŸŒ
GitHub
github.com โ€บ git โ€บ git โ€บ blob โ€บ master โ€บ string-list.c
git/string-list.c at master ยท git/git
December 10, 2018 - #include "git-compat-util.h" #include "string-list.h" ยท void string_list_init_nodup(struct string_list *list) { struct string_list blank = STRING_LIST_INIT_NODUP; memcpy(list, &blank, sizeof(*list)); } ยท void string_list_init_dup(struct string_list *list) { struct string_list blank = STRING_LIST_INIT_DUP; memcpy(list, &blank, sizeof(*list)); } ยท /* if there is no exact match, point to the index where the entry could be ยท
Author: git
๐ŸŒ
Quora
quora.com โ€บ How-do-you-convert-a-string-to-a-list-of-characters-in-C++
How to convert a string to a list of characters in C++ - Quora
Answer (1 of 2): If itโ€™s a const char* or char* then itโ€™s already a list of characters since a pointer to char is usable as an array. If your string is of type std::string then you can call the function โ€œc_strโ€ to have the C-style string version of it, which is the previous case.
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ article โ€บ how-to-convert-a-list-to-string-in-chash
How to convert a list to string in C#?
Where delimiter is the separator between elements, and list is your List<string> collection. The string.Join() method is the most efficient way to convert a list to string.
๐ŸŒ
UiPath Community
forum.uipath.com โ€บ help โ€บ studio
Convert string to list - Studio - UiPath Community Forum
June 29, 2023 - hello guys Iโ€™m new to Ui path question:- Manoj Sachin Prem Ravi output:- {Manoj, Sachin, Prem, Ravi} or [Manoj, Sachin, Prem, Ravi] need output like this so please help guys
๐ŸŒ
Reddit
reddit.com โ€บ r/racket โ€บ convert a list of char into a single string
r/Racket on Reddit: Convert a list of char into a single string
October 4, 2021 -

If I have a list of char like (cons #\C (cons #\O (cons #\M (cons #\P (cons #\U (cons #\T (cons #\E empty))))))), how can I convert it into a string? I'm not allowed to use string-append, substring, implode, and explode. I am also on Beginning Student so I can't use string-join. I've thought about using (string char) but I can't figure out how it'd work recursively.

Or, how would I be able to convert a list of strings into a single string, given the same restrictions above?

I also posted this on stackoverflow: https://stackoverflow.com/q/69430012/16903929

๐ŸŒ
Codemia
codemia.io โ€บ home โ€บ knowledge hub โ€บ c# list to string with delimiter
C# List<string> to string with delimiter | Codemia
January 8, 2025 - The fastest way to convert a List<string> to a single delimited string in C# is string.Join(). It accepts a separator and an enumerable, and it returns the concatenated result in one call.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ c language โ€บ array-of-strings-in-c
Array of Strings in C - GeeksforGeeks
July 23, 2025 - char *: It indicates that each element in the array is a pointer to a character (i.e., each points to a string). arr[]: Declares an array of pointers, where the size is determined by the number of strings in the initialization list.
๐ŸŒ
FoxLearn
foxlearn.com โ€บ home โ€บ c# โ€บ how to convert string to list in c#
How to convert string to list in C#
February 7, 2025 - string str = "Hello"; List<char> charList = str.ToList(); // Output the list of characters foreach (var c in charList) Console.WriteLine(c);
๐ŸŒ
C# Corner
c-sharpcorner.com โ€บ home โ€บ technologies โ€บ c# strings โ€บ how to convert a list to a string in c#
How To Convert a List to a String in C#
February 9, 2023 - The join method concatenate a list of strings into a single string. ... An aggregate function is used for an accumulator function over a sequence. This function will work with System.Collections.Generic.IEnumerable collection. We can also join any column of an entity. string firstNames = ...
๐ŸŒ
Medium
medium.com โ€บ net-tips โ€บ convert-list-string-to-comma-separated-string-b2324f25362a
Convert List<string> to comma separated String - The Practical .NET - Medium
February 10, 2023 - Practical guides on .NET, C#, architecture, AI, performance, and the lessons developers learn beyond tutorials. ... โ™‰ String.Join() is a static method of String class , which takes two parameters first is separator character and second IEnumerable<T>.