1. Question:What is modular programming? 

    Answer
    If a program is large, it is subdivided into a number of smaller
    programs that are called modules or subprograms. If a complex
    problem is solved using more modules, this approach is known as
    modular programming






    1. Report
  2. Question:Where does global, static, local, register variables and C Program instructions get stored? 

    Answer
    Global , static, local :  In main memory          
    Register variable: In registers
    C program : In main memory.






    1. Report
  3. Question:What is an argument? Differentiate between formal arguments and actual arguments? 

    Answer
    An argument is an entity used to pass the data from calling function to
    the called function. Formal arguments are the arguments available in
    the function definition. They are preceded by their own data types.
    Actual arguments are available in the function call.






    1. Report
  4. Question:When is a switch statement better than multiple if statements? 

    Answer
    A switch statement is generally best to use when you have more than two conditional expressions based on a single variable of numeric type.






    1. Report
  5. Question:Differentiate between a linker and linkage? 

    Answer
    A linker converts an object code into an executable code by linking together the necessary build in functions. The form and place of declaration where the variable is declared in a program determine the
    linkage of variable.






    1. Report
Copyright © 2025. Powered by Intellect Software Ltd