Sum & Average of Three Numbers

Pre-Test

  1. What is a lint?

  2. C compiler
    Interactive debugger
    Analyzing tool
    C interpreter

  3. What is the output of this statement "printf("%d", (a++))"?

  4. The value of (a + 1)
    The current value of a
    Error message
    Garbage

  5. Output of following program?
    int main()
    {
    int i = 5;
    printf("%d %d %d", i++, i++, i++);
    return 0;
    }

  6. }

    765
    567
    777
    Compiler Dependent

  7. Directives are translated by the

  8. Pre-processor
    Compiler
    Linker
    Editor

  9. Study the following statement
    int main()
    {
    int *ptr, a = 10;
    ptr = &a;
    *ptr += 1;
    printf("%d,%d/n", *ptr, a);
    }

  10. 10, 10
    10, 11
    11, 10
    11, 11