Home » C Programming » Variables » Question
  1. What will happen if the following C code is executed?
    #include <stdio.h>
    int main()
    {
    int var = 15;
    printf("%d", var);
    return 0;
    }
    1. 10
    2. 12
    3. 15
    4. Compilation Error
    5. None of these
Correct Option: C

It will run without any error and prints 15.



Your comments will be displayed only after manual approval.