1. Question:What are C tokens? 

    Answer
    There are six classes of tokens: identifier, keywords, constants, string literals, operators and other separators.






    1. Report
  2. Question:What are C identifiers? 

    Answer
    These are names given to various programming element such as variables, function, arrays.It is a combination of letter, digit and underscore.It should begin with letter. Backspace is not allowed.






    1. Report
  3. Question:Difference between syntax vs logical error? 

    Answer
    Syntax Error
    These involves validation of syntax of language.
    compiler prints diagnostic message.Logical Error
    logical error are caused by an incorrect algorithm or by a statement mistyped in such a way that it doesn’t violet syntax of language.
    difficult to find.






    1. Report
  4. Question:What are header files and what are its uses in C programming? 

    Answer
    Header files are also known as library files. They contain two essential things: the definitions and prototypes of functions being used in a program. Simply put, commands that you use in C programming are actually functions that are defined from within each header files. Each header file contains a set of functions. For example: stdio.h is a header file that contains definition and prototypes of commands like printf and scanf.






    1. Report
  5. 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
Copyright © 2025. Powered by Intellect Software Ltd