C uses the uppercase letters A to Z, the lowercase
letters a to z, the digits 0 to 9, and certain special characters as building
blocks to form basic program elements (e.g. constants, variables, operators,
expressions, etc). The special characters are listed below: + - * / = % & #
! ? ^ “ ' ~ \ | < > ( ) [ ] { } : ; . , - (blank space) (Horizontal tab)
(White Space) Most versions of the language
also allow certain other characters, such as @ and $ to be included with
strings & comments.
If a statement within the body of a function calls the same function, the function is called recursive function. Actually, recursion is a process by which a function calls itself repeatedly until some specified condition has been satisfied. This process is used for repetitive computations in which each action is stated in term of previous result. Many iterative or repetitive problems can be written in this form. To solve a problem using recursive method, two conditions must be satisfied. They are: 1) Problem could be written or defined in term of its previous result. 2) Problem statement must include a stopping condition. /* An example of recursive function to calculate factorial of a number.*/ #include<stdio.h> #include<conio.h...
Comments
Post a Comment