Home / C Programming / Library Functions :: Yes / No Questions

C Programming :: Library Functions

  1. Is standard library a part of C language?

  2. A.
    Yes
    B.
    No

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Will the program outputs "IndiaBIX.com"?

     #include
     #include 
    
      int main() 
      {    
         char str1[] = "fresherGATE.com";      
         char str2[20]; 
         strncpy(str2, str1, 8);     
         printf("%s", str2); 
         return 0; 
     }  
    

  4. A.

    Yes

    B.

    No

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. The itoa function can convert an integer in decimal, octal or hexadecimal form to a string.

  6. A.
    Yes
    B.
    No

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. The prototypes of all standard library string functions are declared in the file string.h.

  8. A.
    Yes
    B.
    No

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. scanf() or atoi() function can be used to convert a string like "436" in to integer.

  10. A.
    Yes
    B.
    No

    View Answer

    Workspace

    Discuss Discuss in Forum