Home » C Programming » Functions » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    int n = fun();
    printf("%d", n);
    }
    void fun()
    {
    printf("Welcome ");
    }
    1. 8
    2. Welcome
    3. Welcome 8
    4. Compilation Error
    5. None of these
Correct Option: C

Welcome 8



Your comments will be displayed only after manual approval.