Ad
  • Custom User Avatar

    This is a implicit int, the default return type is int. You can do this with arguments as well like
    fun(a, b) {return a + b;}
    This defined a function called fun, that return int and take a and b as integers.

  • Custom User Avatar

    I have not been writing C for a long time. Can someone please tell me why we can pass the compiler without explicitly stating the return type?