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 do the functions atoi(), itoa() and gcvt() do? 

    Answer
    atoi() is a macro that converts integer to character.
    itoa() It converts an integer to string
    gcvt() It converts a floating point number to string






    1. Report
  5. Question:What is FILE? 

    Answer
    FILE is a predefined data type. It is defined in stdio.h file.






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