locked
array em C# RRS feed

  • Question

  • como declaro um array em C#
    Saturday, October 31, 2015 12:30 AM

Answers

    • Proposed as answer by Kristin Xie Monday, November 2, 2015 7:10 AM
    • Marked as answer by Kristin Xie Monday, November 9, 2015 6:59 AM
    Saturday, October 31, 2015 12:33 AM
  •  Hi Efierre,

    This forum is English forum. But you are using the different language. In the future please ask your question in English. Below is a translation is this correct

    How to declare an array in C#

    To declare an array in C#, you can use the following syntax:

    datatype[] arrayName;

    where,

    • datatype is used to specify the type of elements in the array.

    • [ ] specifies the rank of the array. The rank specifies the size of the array.

    • arrayName specifies the name of the array.

    For example,

    double[] balance;

    Best regards,

    Kristin


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Proposed as answer by Kristin Xie Monday, November 2, 2015 7:10 AM
    • Marked as answer by Kristin Xie Monday, November 9, 2015 6:59 AM
    Monday, November 2, 2015 6:59 AM

All replies

    • Proposed as answer by Kristin Xie Monday, November 2, 2015 7:10 AM
    • Marked as answer by Kristin Xie Monday, November 9, 2015 6:59 AM
    Saturday, October 31, 2015 12:33 AM
  •  Hi Efierre,

    This forum is English forum. But you are using the different language. In the future please ask your question in English. Below is a translation is this correct

    How to declare an array in C#

    To declare an array in C#, you can use the following syntax:

    datatype[] arrayName;

    where,

    • datatype is used to specify the type of elements in the array.

    • [ ] specifies the rank of the array. The rank specifies the size of the array.

    • arrayName specifies the name of the array.

    For example,

    double[] balance;

    Best regards,

    Kristin


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Proposed as answer by Kristin Xie Monday, November 2, 2015 7:10 AM
    • Marked as answer by Kristin Xie Monday, November 9, 2015 6:59 AM
    Monday, November 2, 2015 6:59 AM