Posts

UGC NET Questions Based on C Language || Interview Questions Based On C Language

Image
  C INTERVIEWS QUESTIONS   1.                   What's the C language? 2.                   Who has developed C language? 3.                   Describe the history of the C programming language. 4.                   Where is the C programming language used or the C language used? 5.                   What's the difference between C and C++? 6.                   What is the compared to the top...

Constants Or Literals In C language || Literals in programming Language || Computer Language

Image
C Literals or Constants   A constant is a named memory location that holds only one value throughout the execution of the program. In C programming language, the constant is similar to the variable, but the constant only holds one value during the execution of the program. This means that once a value is assigned to a constant, that value can not be changed during the execution of the program. Once the value is assigned to the constant, the value is fixed throughout the program. A constant can be defined as follows:   Type of C Constants   Numeric Constants 1  Integer Constant An integer constant may be a decimal integer or an octal integer or a hexadecimal integer. The decimal integer value is specified as the direct integer value, while the octal integer value is prefixed with 'o', and the hexadecimal value is prefixed with 'OX.'   An integer constant may also be an unsigned type of integer constant or a long type of integer constant. The...