Structured Programming Language Question and Ans.
Structured Programming Language Question and Ans.
1. C is robust language and has rich set of built-in functions, data types
and operators which can be used to write any complex program.
2. Program written in C are efficient due to availability of several data
types and operators.
3. C has the capabilities of an assembly language (low level features)
with the feature of high level language so it is well suited for writing
both system software and application software.
4. C is highly portable language i.e. code written in one machine can be
moved to other which is very important and powerful feature.
5. C supports low level features like bit level programming and direct
access to memory using pointer which is very useful for managing
resource efficiently.
6. C has high level constructs and it is more user friendly as its syntaxes
approaches to English like language.
4. What is Unstructured programming?
In this you have to use go to statements that allow the control to pass.
When a go to statement is executed, the sequence continues from the
target of the go to. Thus to understand how a program works, you have to
pretend to execute it. This means that it is often difficult to understand the
logic of such a program
Arithmetic Operators
Relational Operators
Logical Operators
Bitwise Operators
Assignment Operators
Increments and Decrement Operators
Conditional Operators
Bitwise Operators
Special Operators
18.what is function?
A function is a set of statements that take inputs, do some specific
computation and produces output.
The idea is to put some commonly or repeatedly done task together and
make a function so that instead of writing the same code again and again
for different inputs, we can call the function.
Example:
Below is a simple C/C++ program to demonstrate functions.
In 'C' programming conditional statements are possible with the help of the
following two constructs:
1. If statement
2. If-else statement