Tag: initialization

55 votes
1 answers
2.5K views
Initializing the string in C; Is the following useful?

I know how to initialize strings in C in two different ways. char str[] = "abcd"; char str[] = {'a'

avatar
Freida
0 1 0 9
asked 07 September, 2021
63 votes
30 answers
2.2K views
Initialization of an ArrayList in one line

I wanted to create a list of options for testing purposes. At first, I did this: ArrayList<String> plac

avatar
Dorian
0 1 0 9
asked 07 September, 2021