UNIT 4-Functions AND POINTERS

    Master this deck with 10 terms through effective study methods.

    Generated from uploaded pdf

    Created by @mukesh

    What is the purpose of functions in programming?

    They organize code and improve readability.

    What distinguishes library functions from user-defined functions?

    Library functions are pre-defined and included in C libraries.

    What is a function declaration?

    It informs the compiler about a function's name and how to call it.

    What happens if a function is not declared before use?

    The compiler will not recognize the function, causing errors.

    What is the main function in a C program?

    It is the entry point of execution for every C program.

    What are the three elements of user-defined functions?

    Function declaration, function call, and function definition.

    Why are user-defined functions important?

    They enhance reusability and modularity in programs.

    What is a function call?

    It is the invocation of a function at a specific point in the program.

    What does a function definition include?

    The implementation details of what the function does.

    How does using functions affect program size?

    Functions help reduce the overall size of the program.


      UNIT 4-Functions AND POINTERS Study Notes | Cramd