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

C program to convert string to lowercase

Demonstrate Working of Friend Functions - A function or an entire class may be declared to be a friend of another class or function. A friend function can also be used for function overloading. Friend function declaration can

C++ Programs Finds kth Smallest Element - "Partitioning the array" on the basis of values at high as pivot value. Swapping value at high and at the index obtained. Partitioning array using last element as a pivot. And recursively

C++ Basic Operation Addition Subtraction - "Addition(+)" of 2 vectors. "Subtraction(-)" of 2 vectors. "Multiplication" of vector with the scalar. "Cross" product of 2 vectors. Scalar(or dot) product of 2 vectors. Negative of vectors

C++ Object Oriented Programming (OOP) - (OOP) is a "Programming Paradigm" that is based on the concept of objects. An object is a "Data Structure" that contains data (fields) and functions. And Objects are instances of

Program to Implement strpbrk() Function - Locates "first occurrence" in string string1 of any character in string string2, If a character from string string2 is found, a pointer to the character in string 'string1' is returned, if not

Prints Days in Month Logical OR Operator - The above logic is simple & easy to code. But it's lengthy and not optimal to implement. In the above solution we are performing same task for multiple conditions i.e. print 31 days

C Programs Depth First Binary Tree Search - C program, using recursion, performs a depth first search traversal. Depth-first search (DFS) is an algorithm for 'Traversing or Searching' a tree, 'tree structure' or graph. The concept of

Program Reverse Order of Words in String - Logic to reverse the order of words in a given string. There are many Logic's to Reverse the order of words. Here is the simplest approach I am using to Reverse the order. Input a string