# C Programming Code Examples

## C > Functions Code Examples

### how to declare a function pointer and how to call a function using this pointer

Program to Implement Sorted Linked List -
Program demonstrates the implementation of Sorted linked list to Balanced BST. Counts the number of nodes in linked list. Construct balanced BST and returns root of it. Returns

C++ Program Sample Implements Vector -
'Insert element' into the vector. Deleting last element of the vector. Size of the vector and Display by index. "Dislplay by iterator". Clear the vector. Enter value to be inserted. Display

C Construct a Balanced Binary Search Tree -
Code construct a balanced binary search tree which has same data members as the given doubly Linked list. This C Program creates a balanced binary search tree which has same

Reading Types of Strings from a Keyboard -
C program code simple approach is to use the fact that each string after the first starts with a character that does not appear in previous string. Thus you can specify the characters...

C Programs Checks If String is Palindrome -
Program accepts a string and checks whether a given string is 'Palindrome'. Take a string as input & store it in the array string[]. Store the same string into the another array 'reverse_s'

Display the Nodes of a Tree BFS Traversal -
C Program Display the Nodes of a Tree using BFS Traversal. Breadth-first search (BFS) is a strategy for searching in a graph when search is limited to essentially two operations: (a)...

C++ Programs Use Above Below Primitive -
Program to check whether two lines intersect to each other. The above-below primitive can be used to test whether a line intersects a line segment. It does iff one endpoint of segment

C program code to Find Area of a Triangle -
C Input base and height of a triangle and find area of the given triangle. How to find area of a triangle in C programming. Input base of the triangle. Store in some variable say base.