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 > Strings Code Examples

Program to Copy One String into Other Without Using Library Function.





Program to Find number of Days in month - Program code enter Month number between 1-12 and print number of days in month using If Else. Input month number from user. Store it in a variable say month and for each month

C++ Code to List Files in Current Directory - To list and "display/print" all the files present inside the current directory in The C++, use a pointer say dir of DIR and the pointer say pdir of dirent to open and "read directory" to print

C Code Check Palindrome Using Recursion - In this article we have shared two C programs to check if the input number is palindrome or not. 1) using while loop 2) using recursion. If a number 'remains same', even if we reverse its

String Functions strcmp Compares Strings - C function 'compares' the two strings, returns an integer value. If both the strings are 'same' then this function would return 0 otherwise it may return a negative or positive value based

C++ Find kth Largest Element in Sequence - A Function to build max heap from the initial array by checking all non-leaf node to satisfy the condition. And build "max-heap" k times, extract the 'maximum' and store it in the end

C++ Checking if a Given Graph is Bipartite - Bipartite Graph is a graph in which the set of 'vertices' can be divided into 2 sets such that all vertex should be present in either set 1 or set 2 but not both, and there should no edge

C++ Programming Code for Selection Sort - Here, we use 'swapping' of the elements with the help of a Variable say temp of same type. That is, on found, start 'Swapping' with temp variable, place the first number in the temp &

Code Count Frequency of Digits in Integer - Logic to find frequency of digits in a number. Input a number. Store it in some variable say j. Declare and initialize an array of size 10 to store frequency of each digit. Why declare...