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 > Gnu-Linux Code Examples




Converts Decimal Number to Octal in C++ - In the program, the decimal number is stored in the variable decimalNumber and passed to function decimalToOctal(). Function converts the 'decimal number' passed to its equivalent

C++ Finding Area of Circle using Function - C++ Program should have two functions one which takes radius as parameter and second takes diameter as parameter. If enters wrong option then tell users its 'valid selection' and

Efficient Implementations of Disjoint Sets - numElements is the initial number of disjoint sets. Union "Two Disjoint" sets. For simplicity, we assume "root1 and root2" are distinct and represent set names. "root1" is the root of set

Access Elements of an Array Using Pointer - Program Declares the array of five element & the elements of that array are accessed using pointer. The five elements are entered by the user and stored in the integer array data. And

How to pass an entire array to a function - Pointer var1 is pointing to the first element of the array and the var2 is the size of the array. In the loop we are incrementing pointer so that it points to the next element of the array

C Programming codings Else..If Statement - C Language The else..if statement is useful when you need to check multiple conditions within the program, nesting of if-else blocks can be avoided using else..if statement. else

Print Natural Numbers in R Reverse n to 1 - C Program code print all Natural Numbers in reverse from n to 1 using for loop. Input start limit from user. Store it in some variable say start. Run a loop from start to 1 & decrement

Check if a Number is Positive or Negative - C Language check if a number is positive or negative using nested if...else. This program takes a number from user & checks whether that number is either positive or negative or