December 19, 2018

Searching and Sorting in C Programming

Searching

This is the process by which one searches the group of elements for the desired element. For example:

Binary Search
In binary search the basic requirement is the elements of the array should have been sorted alphabetically or numerically in the ascending order.

this photo is taken from www.geeksforgeeks.org 

December 17, 2018

File Processing in C Programming



In industry, most of the programs are written to store the information is taken from the program. One such way is to store the fetched information in a file. File is created for permanent storage of data.

C have a lot of functions that helps to perform basic file operations. Here is that table of functions.

this table is taken from www.studytonight.com

For opening file or creating a file we can use fopen() function. For closing file we can use fclose() function. In this function, we need a pointer to run this function.

December 13, 2018

Struct and Union in C Programming


Struct

Struct is a user-defined datatype in C language which allows us to combine data of different types together.


Union

Like Struct, union is a user-defined datatype. In union, all members share the same memory location.

so this picture shows the difference and the form between Struct and Union

Garvin Moses Tanuwihardjo - Binusian'22

Function - Recursion in C Programming & Cloud Computing

Function

 return_value_type function name ( parameter-list )



  statements;

}



⇒If return-value-type is void then the function will not return value.


Searching and Sorting in C Programming

Searching This is the process by which one searches the group of elements for the desired element. F or example: Binary Search In...