Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Active Tutors
Asked Questions
Answered Questions
binary logical bit-wise operators there are three logical bit-wise operators
bit-wise operatorssome applications require operations to be done on dissimilar bits of a byte separately bit-wise operators offer a facility to do
logical operatorswe say any expression that evaluates to zero is a false logic condition and that evaluating to non-zero value is a true condition
relational operatorsa relational operator is used to make comparison among two values all these operators are binary and needs two operands there are
compound assignment operatorsapart from the binary and the unary arithmetic operators we also have compound assignment operators these are -
increment and decrement operators the operator for increment is and decrement is - these operators enhances or decrease the value of a
unary minus operator negationthis operand can be used to negate the value of a variable it is also used to state a negative number here a minus- sign
explain the parts of operatorsassignment operatorsthe equal sign is used for assigning a value to another the left hand side has to be a variable
operatorsthe variables which are declared and explained are the operands which are operated upon by the operators operators specify what operations
explain register variablecomputers have internal registers which are used to keep data temporarily before any operation can be performed intermediate
external variablesdifferent functions of the similar program can be written in different source files and can be compiled together the scope of a
static variablesstatic variables have the similar scope s automatic variables but unlike automatic variables static variables retain their values
automatic variablesautomatic variables are variable which are explained within the functions they lose their value when the function terminates it
scope rules and storage classesthe storage class verifies the life of a variable in terms of its duration or its scope there are four storage classes
recursive functionsrecursion is a process by which a function includes itself with a condition for its safe exit it is best suitable for a recursive
the definition of an objectvariable we can explain a variableset memory to the variable in the following waysegdouble salaryint monthwhen more than
variablesinformation stored in a variable can alter in the course of the program the type used in the definition explains the kind of information the
floating literalthey can be written in common decimal as well as scientific notation floating point representation by default it is of type
integer literalinteger is numbers without fractional partseg20 decimal024
literals constantsconstants are data storage locations whose address is not accessible for the user their value is not altered during the course of
write a program that allows user to enter number of elements in an array the program then allows user to enter the elements write a function called
explain the macrospreprocessor is a translation stage that is applied to your source code before the compiler proper gets its hands on it usually the
define four facilities provided by c language preprocessorthe c language preprocessor provides four separate facilities that you can use as you see
write a program that illustrate command line parametersmainint argc char argvint ifori 0 i lt argc i printfarg d sn i argvireturn
write a program that illustrate macros with argumentsmacros is able to also have arguments just as functions candefine areax314xxthen at any time