1. Question:What is the significance of an algorithm to C programming? 

    Answer
    Before a program can be written, an algorithm has to be created first. An algorithm provides a step by step procedure on how a solution can be derived. It also acts as a blueprint on how a program will start and end, including what process and computations are involved.






    1. Report
  2. Question:What is debugging? 

    Answer
    Debugging is the process of identifying errors within a program. During program compilation, errors that are found will stop the program from executing completely. At this state, the programmer would look into the possible portions where the error occurred. Debugging ensures the removal of errors, and plays an important role in ensuring that the expected program output is met.






    1. Report
  3. Question:What are preprocessor directives? 

    Answer
    Preprocessor directives are placed at the beginning of every C program. This is where library files are specified, which would depend on what functions are to be used in the program. Another use of preprocessor directives is the declaration of constants.Preprocessor directives begin with the # symbol.






    1. Report
  4. Question:How do you determine the length of a string value that was stored in a variable? 

    Answer
    To get the length of a string value, use the function strlen(). For example, if you have a variable named FullName, you can get the length of the stored string value by using this statement: I = strlen(FullName); the variable I will now have the character length of the string value.






    1. Report
  5. Question:What are the different file extensions involved when programming in C? 

    Answer
    Source codes in C are saved with .C file extension. Header files or library files have the .H file extension. Every time a program source code is successfully compiled, it creates an .OBJ object file, and an executable .EXE file.






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