Home » C Programming » Operators » Question
  1. What will be the final value of L in the following C code?
    #include <stdio.h>
    int main()
    {
    int k = 0, L = 0;
    if (k && (L = k + 12))
    //do something
    ;
    }
    1. Nothing
    2. 0
    3. Depends on language standard
    4. Depends on the compiler
    5. None of these
Correct Option: B

it will not show any output because we are not using printf for print any value as output. but the value of L will be 0.



Your comments will be displayed only after manual approval.