Home / C# Programming / Datatypes :: Discussion

Discussion :: Datatypes

  1. Which of the following are the correct way to initialise the variables i and j to a value 10 each?

    1. int i = 10; int j = 10;
    2. int i, j; i = 10 : j = 10;
    3. int i = 10, j = 10;
    4. int i, j = 10;
    5. int i = j = 10;

  2. A.
    2, 4
    B.
    1, 3
    C.
    3, 5
    D.
    4, 5

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    No answer description available for this question.


Be The First To Comment