views:

33

answers:

3

Hi ,

I have a type int arr[6], and the value is {1,2,3,4,5,6}. How should I express this data using YAML?

+1  A: 

Use this, and see what form does the output take.

luvieere
+2  A: 

You should simply use a list:

[1, 2, 3, 4, 5, 6]
Joey
+2  A: 
[1, 2, 3, 4, 5, 6]
or
- 1
- 2
- 3
- 4
- 5
- 6