Home / C Programming / Functions :: Discussion

Discussion :: Functions

  1. What is the notation for following functions?

    1.  int f(int a, float b)  
        {        
           /* Some code */   
        }  
    2.  int f(a, b)     
        int a; float b;   
        {        
          /* Some code */    
        } 
    

     

  2. A.

    1. KR Notation
    2. ANSI Notation

    B.

    1. Pre ANSI C Notation
    2. KR Notation

    C.

    1. ANSI Notation
    2. KR Notation

    D.

    1. ANSI Notation
    2. Pre ANSI Notation

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    KR Notation means Kernighan and Ritche Notation.


Be The First To Comment