Home / C Programming / Complicated Declarations :: Discussion

Discussion :: Complicated Declarations

  1. Point out the error in the following program.

      #include
      void display(int (*ff)()); 
    
     int main()
     {    
          int show();  
          int (*f)();   
          f = show;  
          display(f);  
          return 0;
      }
      void display(int (*ff)()) 
     {  
         (*ff)();
     } 
     int show()
     {  
       printf("Freshergate");
     } 
    

  2. A.

    Error: invalid parameter in function display()

    B.

    Error: invalid function call f=show;

    C.

    No error and prints "Freshergate"

    D.

    No error and prints nothing.

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    No answer description available for this question.


Be The First To Comment