Operators


  1. What will be the output of the following C code?












  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    6


  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    int p = -6;
    int s = (p++, ++p);
    printf("%d\n", s);
    }











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    -4



  1. What will be the output of the following C code?












  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    7 -7 2 1


  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    int p = 20, q = 10, r = 10;
    int s;
    s = p == (q + r);
    printf("%d", s);
    }











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    1



  1. What will be the output of the following C code?
     #include <stdio.h>
    void main()
    {
    int num1 = 2, num2 = 0, num3 = 6;
    int Res = num1 && num2 && num3++;
    printf("%d", num3);
    }











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    6