Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


       

C Programming Code Examples

C > Beginners Lab Assignments Code Examples

A program to implement Heap Sort





C Language Codes to All Display Functions - Get current Display Mode. Character with chosen attribute. Scroll the window up. Scroll the window down. Read the character & it's attribute. Positioning the Cursor. Selecting...

Function strncpy Copies First n Characters - If 'Length of str2' > n then it just copies first n characters of str2 into str1. If Length of str2 < n then it 'copies' all the characters of str2 into str1 & appends several 'terminator' chars('\0')

C Program Inputs two Strings & Compares - Lets take 2 Strings as input and store them in the arrays string1[] and string2[] respectively. "Count the Number" of characters in both the arrays and store the result in the variables co1

C++ Program to Implement Selection Sort - This C++ program sample sort the given data using Selection Sort. Selection sort algorithm sort data by comparing one element to every other element & decide its position. The time

Find The Position of A Point With Respect - This is a C++ Program to check whether point lies above, below or on the line. For example, the equation of the line connecting points (2, 2) and (4, 5) is -3x + 2y + 2 = 0. The point (6, 3)

Checks Whether a Number is Prime or Not - A 'positive integer' which is only divisible by 1 and itself is known as prime number. So 13 is a prime number because it is only divisible by 1 and 13 but, 15 is not prime number because

C Program Find Square Root of a Number - C input a number and find square root of the given number. How to find square root of a number in C programming using inbuilt sqrt() function. Using predefined sqrt() function to

C Programming Code Use Goto Statement - The goto statement is rarely used because it makes program confusing, less readable and complex. Also, when this is used, the control of the program won't be easy to trace, hence