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 = 12, L = 0;
    if (k || (L = k + 12))
    //do something
    ;
    }
    1. 0
    2. Nothing
    3. 12
    4. Compilation Error
    5. None of these
Correct Option: A

it will not show any output because we are not using printf for print any value as output.



Your comments will be displayed only after manual approval.