Skip to main content

3. What is Constant?

A constant is an entity with fixed value that doesn't change.It can be stored at a location in memory of the computer and can be reference through that memory addressed.

➡ Constant are fixed value that remain unchanged during the execution of programme and are used in assignment statement constant can be stored in variables.

✖ There are 5 basic types of constant in c

1 Integer constant
2 Real constant
3 character constant
4 String constant
5 Logical constant

 

Comments

Popular posts from this blog

React Js interview questions

 

What is Increament or decrement operator?

They are (++) increment operator in c. (--)decrement operator in c. These two operators are called unary operator as they require only one operand.The operand should be a variable not a constant. * (++) operator :- Add one to the value of operand. *(--) operator :- substract one to the value of operand. # These operators are used in two form 1 pastfix form 2 prefix form          

Digital computer v/s Analog computer

Analog computer don't have ability of digital computer to store data in large quantities,nor do they have the comprehensive logical facilities afforded by programming digital machine.although the arithmetic function perform by the computing unit are more complex in analogue machine than in digital system. Analog machine are design for specific applications but most electrical and electronic analog computer provide a number of different computing devices which can be connected together via plug board or provide different methods of operations for special problem. In digital machine number to be stored to be used in same calculations were represented by physical quantities such as electrical voltage.