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 > C on Unix Code Examples

Program that shows how fork system call works

Read a String & Find The Sum of All Digits - Program takes a String containing both digits and alphabet as input and finds the sum of all digits in the string. Take the string containing both 'digits and alphabet' as input and store it

C Program Code Calculate Simple Interest - C code example to input principle amount in some variable say principle and input time in some variable say time. Input rate in some variable say rate. Find simple interest using

Collection of Sorting & Selection Routines - Shellsort, using Shell's (poor) increments. An Internal method for heapsort. i is the index of an item in the heap. Returns the index of the left child. Internal method for heapsort that is

Converting IP Address to its base10 form - Print help and exit with exval. Print version and exit with exval. Output some additional info. Very basic test of ip4 dotted quad address format. Convert address to base 10

Copy one String into Other without library - Scan a string from "left to right", character by character. In each iteration "copy a character" to a new String variable. As soon as source or original string ends, the process of the coping

Implement Two Stacks using Single Array - C Programming code implements two Stacks using a Single Array & Check for Overflow & Underflow. A Stack is a linear data structure in which a data item is inserted and deleted...

C ++ Access Functions and Encapsulation - In C++ language, Encapsulation is achieved using access specifiers. In encapsulation we make all member variables private, provide public "functions" which allow user to work

Exception Handling Multiple Catch in C++ - In C++ code, 'Declare and define' the function test(). Within the try block check whether the value is 'greater than zero' or not. If the value greater than zero 'throw the value' and catch