C Programming Code Examples
C > Code Snippets Code Examples
Append substring to string: strncat
Program Implements First Fit Decreasing -
This is a C++ Program to implement First Fit Decreasing for one dimensional objects and M bins. This is bin packing algorithm for first fit technique. Bubble Sort descending order
Queue C++ Code Using Class and Member -
This represents the queue dequeue function. Every time another object or customer enters the line to wait, they join the "end of the line" and represent the "enqueue function". Queue
C Programming Selection sort [linked list] -
Load some random values into the linked list. Adds a node at the end of a linked list. If the list is empty, create first node. Go to last node. Add node at the end. Assign data to...
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)
Print some General File info in C program -
Filename, device, inode, protection, number of hard links, user ID of owner, group ID of owner, device type, total size, blocksize for filesystem I/O, number of blocks allocated,
C++ Implement Circular Singly Linked List -
Enter the element and "Insert element" after position. Print: "list is empty" and nothing to delete. Enter the element for deletion. Enter the element to be searched. "Create Circular"
C Finds a Year is Leap or not is a bit Tricky -
C Program Code we generally assume that if a year number is evenly divisible by 4 is leap year. But it is not the only case. A year is a leap year if it is evenly divisible by 100. If it is
C++ Additions Subtractions Multiplication -
Perform addition, subtraction, multiplication and division of any two numbers in 'C++', you have to enter the 'two number' and enter the operator to perform the particular operation