Home » C Programming » Constants » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int const Result()
    {
    printf("interviewmania.com");
    return 0;
    }
    void main()
    {
    Result();
    }
    1. interviewmania.com is printed infinite times
    2. interviewmania.com
    3. Runtime Error
    4. Error because function name cannot be preceded by const
    5. None of these
Correct Option: B

interviewmania.com



Your comments will be displayed only after manual approval.