Home / C Programming / Functions :: General Questions

C Programming :: Functions

  1. The keyword used to transfer control from a function back to the calling function is

  2. A.

    switch

    B.

    goto

    C.

    go back

    D.

    return


  3. 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 */    
        } 
    

     

  4. 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


  5. How many times the program will print "FRESHERGATE" ?

     #include
    
      int main()
      {     
         printf("FRESHERGATE");  
         main();    
         return 0; 
      } 

     

     

     

  6. A.

    Infinite times

    B.

    32767 times

    C.

    65535 times

    D.

    Till stack overflows