Bubble Sort in c

Bubble Sort in c Bubble Sort is probably one of the oldest, most easiest, straight-forward, inefficient sorting algorithms. It is the algorithm introduced as a sorting routine in most introductory courses on Algorithms. Bubble Sort works by comparing each element of...

sorting in c

sorting in c Sorting in general refers to various methods of arranging or ordering things based on criterias (numerical, chronological, alphabetical, heirarchial etc.). In Computer Science, due to obvious reasons, Sorting (of data) is of immense importance and is one...

Arrays of Strings in c

Arrays of Strings in c Besides data base applications, another common application of two dimensional arrays is to store an array of strings. In this section we see how an array of strings can be declared and operations such as reading, printing and sorting can be...

string operations in c

string operations in c S.no String functions Description 1 strcat ( )  Concatenates str2 at the end of str1. 2 strncat ( )  appends a portion of string to another 3 strcpy ( )  Copies str2 into str1 4 strncpy ( )  copies given number of characters of one string to...

String in c

String in c The string in C programming language is actually a one-dimensional array of characters which is terminated by a null character ‘\0’. Thus a null-terminated string contains the characters that comprise the string followed by a null. The...

Pointer to an Array in C

Pointer to an Array in C It is most likely that you would not understand this chapter until you are through the chapter related to Pointers in C. So assuming you have bit understanding on pointers in C programming language, let us start: An array name is a constant...