C Programming Code Examples
C > Bitwise Operators Code Examples
C Program to Replace Bits in Integer from Specified Positions from Another Integer
Insert Element in Array at certain position -
Enter array size, array elements, element to be insert, enter the index where to insert the desired element in the array, so this program insert the desired element and displaying the
C Convert UpperCase String to LowerCase -
In C Language program code, user would be asked to enter a String (it can be in complete uppercase or partial uppercase) and then the program would convert it into a complete(all
Virtual Calendar shows the current month -
Draws box with "month and year" in header. Displays current time in footer of box. Prints dates within box. Scans user key and retuen its scan code. Detemines first day of month.
Create strings, shuffle existing strings in C -
C programming code randomize string STR. Sefinitely not cryptographic secure. Strip trailing newline. Pick a random char out of input string. Swap orig char with pick and...
Compute to difference between two dates -
C Programming code sample to compute difference between two dates. Enter first day, month, year. No. of days of first date from the Jan 1. Count for additional days due to...
Finds First Occurrence of a Word in String -
How to find the 'first occurrence' of any word in a string in C. Input string from user, store it in a variable "str". Input word 'to be searched' from user, store it in some other variable say
C Program Check the Year is Leap Year or -
Check whether a year is Leap or not by using this Mathematical Logic. If a year is divisible by 4, 100 & 400 then it is a leap year. If a year is divisible by 4 but not divisible by 100 then...
Program to Check Whether Graph is DAG -
This is a C++ Program code to check whether graph is DAG. In mathematics and computer science, a directed acyclic graph, is a directed graph with no directed cycles. It is formed by