Programs are used to develop applications by which,
we can communicate,
can perform calculations much faster,
can design gaming applications
can develop embedded applications
many more..
What is Platform dependency?
C – is platform dependent.
Using Platform dependent language, we can develop only desktop applications.
Differentiate Desktop application v/s Web application?
Desktop application :
Application runs from single machine.Application must be installedInternet connection is not required
Web application:
Application installed in server and run from clients
No need to install in client system
Application can access without internet connection
Define main() function?
Main() method is the execution point of C Program.Program execution starts at main() function and ends at main() function.
We can call other functions from main() function.
What is variable?
Variable is an identity of memory allocation.
What is the use of variable?
Using variable, we can store and process information.
Define Local and Global variables?
Local variable:
Define variable inside the block or functionLocal variables can access only from the same block
Global variables:
Define a variable outside to all functions
We can access global variable from all functions.
What is the use of datatype?
We need to specify the data type in the declaration of every variable.
Data type describes about type of data allowed to store into variable and how much memory allocated.
What is Operator?
Operator is a symbol that performs operation on data.Arithmetic operators perform all arithmetic operations such as addition, subtraction, multiplication and division.Relational operations returns true or false by validating the relation among data.Logical operations returns true or false by validating more than one expression.Modify operations increase or decrease the value by 1Bitwise operations perform operations on data by converting into bits.
Shift operations are used to shift the binary bits in memory locations.
What is Function?
A Block of instructions defined to perform a task.
Function has identity
What is Array?
Array is used to store more than one value but of same type.Array element can access using their index starting from 0 to length-1
Array elements store in consecutive memory locations.
What is String?
String is a sequence of characters.Strings can represents with either char[] or char* in C.
Strings can process using their index.
What is Pointer?
Pointer stores address of memory location by which we can process information.
What is Structure?
A user defined data type by which we can store more than one element of different types of data.
Define Union?
Union is a user-defined data type.We can create Union type with any number of elements but we can use only one element at a time.
Unions were used in early days when memory is expensive.
Define typedef?
Typedef is used to create synonyms to data types.
Typedef make the complex data types more readable such as arrays, structures and pointer types.
Define Enum?
Enum is used to create a set of elements and process those elements using constant integer values starting from 0.
We can set values explicitly to identity the elements in set
What is Pre-processor?
Pre-processor is a program that process-out the source code before compilation phase.
Pre-processor allows
Inclusion of header files
Creating macros
Conditional Compilation
Conditional Execution
Line Control
Define File?
File is a user defined data type by which we can store the information physically(permanently).
Define Graphics?
Graphics.h is a library of programs by which we can implement GUI programming in C Language. We can create basic gaming programming using colors, shapes etc.