Top of Form
Top of Form
Top of Form
4) What is Algorithms?
An algorithms refer to the step by step instructions written to solve any problem.
5) What is Flowchart ?
A flowchart is a diagrammatic or symbolic representation of an algorithms. It uses various
symbols to represent the operations to be performed.
10) What are the maximum and minimum possible ranges of values for long and short type?
If the int variable is created by default as a ‘long’ type it typically will have a possible range of
values from a maximum of +214748347 and a minimum of -2147483648. For ‘short’ type these
are the maximum and minimum values +327676 and minimum -32768.
(While answering this question you can specify the approximate value raised to power).
11) What is preprocessor?
The preprocessor is a program which is executed before the compilation of a source program
written by the user. The preprocessor directives begines with hash (#) followed by the
command. e.g #include – it is a directive to include file.
12) What exactly is a ‘variable scope’, ‘local variables’ and ‘global variables’?
The extent to which a variable is accessible in a program is called the ‘variable scope’. Variables
declared internally inside a function are known as ‘local’ variables.
Variables declared externally outside a function are known as ‘global’ variables.
38) How does the type float differ from double in C language ?
Float data type refers real number in single precision and has 6 decimal digits. It takes 4 bytes in
memory to refer values ranging from 3.4e-38 to 3.4e+38
double data type also refers to real number but in double precision and has 12 decimal digits. It
takes 8 bytes of memory to refer values ranging from 1.7e-308 to 1.7e+308