C Program to demonstrate how the escape characters work.

C Program to demonstrate how the escape characters work.Escape character is the single character, and it is compiled as the character constant.Escape characters are used to solve the c format problems.An escape sequence is denoted by using the backslash () as an escape character, followed by a single character indicating the nonprintable character desired.Read more …

C Program to find the position of a sub string.

C Strings:C Program to find the position of a sub string in a given string.In this program, We find the position of a sub string where it starts  in the main string. Read more about C Programming Language . /************************************************************ You can use all the programs on www.c-program-example.com* for personal and learning purposes. For permissions …

C program to Demonstrate the Recursive function.

Write a C program to demonstrate the recursive function.Recursion  is the programming technique that a process invoking itself again and again. In this program, We reverse the given number and checks it is a palindrome or not. Read more about C Programming Language . /************************************************************ You can use all the programs on www.c-program-example.com* for personal …

C program to count the leaves of the binary tree.

Write a C program to count the leaves of the binary tree.Binary tree is the ordered directed tree data structure, in which each node has at most two nodes.A node is called as a leaf node,  if it does not contains any child elements. In this program, We used the structures to create the binary …

C Program to implement hashing.

Write a C Program to implement hashing.Hashing is the function or routine used to assign the key values to the each entity in the database. Using hashing, We can easily access or search the values from database.In this program we used the open addressing hashing, also called as closed hashing.Read more about C Programming Language. …

K&R C Chapter 1 Exercise Solutions — A Tutorial Introduction

Chapter 1: A Tutorial Introduction is where K&R C begins — and it moves faster than most C books. By exercise 1-8 you are counting characters by category; by 1-13 you are drawing histograms; by 1-22 you are folding long lines. The chapter uses only a tiny subset of C deliberately: loops, if/else, basic functions, …