Recursive function in c language

The function which is used to call itself inside its own body is known as recursive function and such also known as recursion. Input a number and print the sum of all number from to the inputed number. Input a number and print factorial. ...

Read more

File handling in C language

A file is a collection of related information define by the user generally files represents program both source code and object code and data.The data may be numeric alphabetic or alpha numeric files may be free for such as text or format.In general a file is a secretes of bits,bytes,lines or records.whose meaning is define by it is created.A file is named and refereed to by its name.The operating system pr ...

Read more

typedef in C language

typedef is used to give a new name to standard datatype or creates synonym's of a standard datatypes. Example:Input a decimal number and print it actual number using typedef. ...

Read more

Enumeration in C language

The enumeration data type is a user define datatype with value ranging over a finite set of identifies called enumeration constants. This example defines color to be a new datatype which can be assume the value red,green,blue each of this is a enumeration constant here color can be use has a new datatype enumeration is a convenient way to associate constant integer with meaningful name.the advantage is to g ...

Read more

Preprocessor and Macro function in C language

Like as the declaration of general variable C allow to define identifies with data value by using '# define'.Which is known as preprocessor. it is compile by the compiler before the execution of the main source code of the program. Example:- Que:-Input a radius of a circle and print its a area. Macro function The preprocessor will replace call macro function used in the program by there function body before ...

Read more

Make a header file in C language

User can make a header file.follow steps:- make a function without using any header file. then go to save as command of file menu. open a dialog box then type file name(manish.h) in directory (include directory) then click on the ok button path:-c:\tc\include\manish.h Call your function with Example ...

Read more

Union in C language

A union allow the overlap of more than one variable.the same memory area.General each and every variable.It's store in a separate location and each variable have there own address in the memory.often it is found that the variable used in a program appear only in small portion of the source code but In case of union many variable have the same address.so, it occupies less memory and structure occupies more m ...

Read more

Structure in C language

Structure is the combination of logically related data items with in a single unit or block.The data items are enclosed with in the structure block are known as the member of structure. The functions of the structures are known as the member function of structure.The data member of function of the structure may be of same or different datatypes like int,float,char etc. structure is mainly use to create user ...

Read more

Pointer in C language

pointer is a treated as secondary datatype which offer a high degree of flexibility in the management of data as the name employee pointer refers to address identifying a programming element like data on function Thus, the user can make operation directly on same data on function. Memory is organized in the form of a sequence of a byte location for storage cell containing either program code on data.this by ...

Read more

© 2014 Powered By