How to sort functions in C? “previous implicit declaration of a function was here” error

前端 未结 5 1381
说谎
说谎 2021-01-02 06:41

I\'m sure this has been asked before, but I couldn\'t find anything that would help me. I have a program with functions in C that looks like this

function2(         


        
5条回答
  •  情书的邮戳
    2021-01-02 07:44

    Try:

    function1();
    function2();
    
    function2(){
      function1()
    }
    function1 (){
      function2()
    }
    
    main () {
     function1()
    }
    

提交回复
热议问题