Home / General Knowledge / Testing sawaal :: Discussion

Discussion :: Testing sawaal

  1. enum colors {BLACK,BLUE,GREEN}

    main()

    {

    printf( "%d..%d..%d", BLACK, BLUE, GREEN );

    return(1);

    }

  2. A.
    1..2..3
    B.
    0..1..2
    C.
    1..1..1
    D.
    0..0..0

    View Answer

    Workspace

    Answer : Option B

    Explanation :


    enum assigns numbers starting from 0, if not explicitly defined.


Be The First To Comment