Você está na página 1de 5

Functional Paradigm

Also known as functional programming, this refers to the arithmetic section of any program. Functional
programming allows the computer to easily understand and carry out mathematical operations, without
any special conversion being done to the operation for the computer to understand it. So operation are
simply declared.
Key Characteristics

- It is a form of declarative paradigm


- Its purely arithmetic, and uses only conditional expressions
- It does not manipulate values, only accepts, calculates and returns them
- They can also be used along with imperative language. Like in loops and with variables with
assignment
- It is static and nonrepetitive
- It incorporate no data
- It operates only it arguments
Advantages

- Code doesn’t need to be long and complicated. Most functional programs are brief.
- Its structure is helpful in understanding it without mentally executing it
- It creates more correct and elegant programs over imperative programming
Disadvantage

- Not everyone can grasp the concept since there are no term and meanings involved
- Causes problems when debugging with debugger since functional program skips the conceptual
level
- It can be difficult for new programmers using C since some function symbols are different than
regular arithmetic operations
- Its difficult to find help when u run into problems since functional programming isn’t widely
used
Sample

1
{.
if (5>6)
printf(“5”);
else
printf(“6”);
}

2.
{
int n=0;
n=5*6
printf(“n is equal to %d”,n);
}

Você também pode gostar