CrazyEngineers
  • what is the output and why?

    accoolaryan

    Member

    Updated: Oct 25, 2024
    Views: 1.1K
    😕
    int main()
    {
    int fun();
    printf("%d",fun());
    getch();
    return 0;
    }
    fun(){
    return 011;
    }
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • rama_krish627

    MemberNov 29, 2009

    The output is 9 why because 011 is in octal it's equivalant decimal is 9.
    Octal numbers are followed by 0.
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register