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.


October 28, 2018

Pointer and Array in C Programming

Pointer
used to keep addresses of case or integer and to access the memory or setting the address. like any variabel constant , you must declare a pointer before using it to store any variable address.

October 17, 2018

Program Control - Repetition

For
//for(case1; case2; case3) statements;

For used when we want to do looping for a certain number of times.
don't forget to check the case because if we don't check the case, the program can be run with invinite looping.

Hasil gambar untuk for in c

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...