Posts

Showing posts from October, 2015

Prog- C 2 Mark Q&A

1.     Define the term variable and constant. Variable:           A variable is a data name that is used to store a value. A variable may take different values at different times. A variable can be chosen by the programmer in a meaningful way. So as to reflect its function or nature in the program. Eg: city                    college     a1 Total_mark      Name       Avg Constant:   A constant is a value that does not change during the program execution. A constant used in C does not occupy memory. 2.     What is an expression in C language? Expression is defined as a combination of operand and operator to obtain some computation. Operands represent variable or values and the operator tells what operation is to be performed. 3.   ...