Home / General Knowledge / Testing sawaal :: Discussion

Discussion :: Testing sawaal

  1. What will be output of the following c program ?

    #include

    int main()

    {

        int max-val=100;

        int min-val=10;

        int avg-val;

        avg-val =( max-val + min-val ) / 2;

        printf( "%d", avg-val );

        return 0;

    }

  2. A.
    55
    B.
    105
    C.
    60
    D.
    Compilation error

    View Answer

    Workspace

    Answer : Option D

    Explanation :


    We cannot use special character – in the variable name.
    Variable name can have only underscore.


Be The First To Comment