Home » C Programming » Functions » Question
  1. Which of the following statements are correct about the following program?
    #include <studio.h>
    int main ( )
    {
    printf ("%p\n", main);
    return 0;
    }
    1. It prints "main" infinite number of times.
    2. It runs an infinite loop without printing anything.
    3. Compiler report an error since main() cannot be called recursively.
    4. Address of main( ) would get printed infinite number of times.
    5. Address of main( ) would get printed once.
Correct Option: E

Address of main( ) would get printed once.



Your comments will be displayed only after manual approval.