1. Question:What is a file? 

    Answer
    A file is a region of storage in hard disks or in auxiliary storage devices.It contains bytes of information .It is not a data type.






    1. Report
  2. Question:What is the use of a ‘\0’ character? 

    Answer
    It is referred to as a terminating null character, and is used primarily to show the end of a string value.






    1. Report
  3. 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
  4. Question:What are variables and it what way is it different from constants? 

    Answer
    Variables and constants may at first look similar in a sense that both are identifiers made up of one character or more characters (letters, numbers and a few allowable symbols). Both will also hold a particular value.  Values held by a variable can be altered throughout the program, and can be used in most operations and computations. Constants are given values at one time only, placed at the beginning of a program. This value is not altered in the program. For example, you can assigned a constant named PI and give it a value 3.1415  .  You can then use it as PI in the program, instead of having to write 3.1415 each time you need it.






    1. Report
  5. Question:Can you use “int” data type to store the value 32768? Why? 

    Answer
    No. “int” data type is capable of storing values from -32768 to 32767. To store 32768, you can use “long int” instead. You can also use “unsigned int”, assuming you don’t intend to store negative values.






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