• Skip to main content
  • Skip to primary sidebar
  • Skip to secondary sidebar
  • Skip to footer

Computer Notes

Library
    • Computer Fundamental
    • Computer Memory
    • DBMS Tutorial
    • Operating System
    • Computer Networking
    • C Programming
    • C++ Programming
    • Java Programming
    • C# Programming
    • SQL Tutorial
    • Management Tutorial
    • Computer Graphics
    • Compiler Design
    • Style Sheet
    • JavaScript Tutorial
    • Html Tutorial
    • Wordpress Tutorial
    • Python Tutorial
    • PHP Tutorial
    • JSP Tutorial
    • AngularJS Tutorial
    • Data Structures
    • E Commerce Tutorial
    • Visual Basic
    • Structs2 Tutorial
    • Digital Electronics
    • Internet Terms
    • Servlet Tutorial
    • Software Engineering
    • Interviews Questions
    • Basic Terms
    • Troubleshooting
Menu

Header Right

Home » C » C Programming Basic

Types and Variables

Basic of C Programming

C Programming Basic

C calculating Integration using Trapezoidal Rule

By Dinesh Thakur

The trapezoidal rule is the simplest method to approximate the definite integral of a function f(x) over the interval [a, b]. Given N equally space points (with a spacing of h) X0, X1, …, XN such that X0 = a and XN = b, the integral of f(x) can be approximated as the sum. [Read more…] about C calculating Integration using Trapezoidal Rule

C Program to find out root using Bisection

By Dinesh Thakur

Given a function f(x) which is continuous in the interval [a, b] and satisfying the property hat f(a)*f(b) < 0, there exists a root of the function f(x) in the interval [a, b]. The bisection algorithm works as follows where t: and 8 are small values specified by the user. [Read more…] about C Program to find out root using Bisection

Const and volatile Qualifiers in C

By Dinesh Thakur

The const qualifier tells the compiler that the variable’s value should not be changed once it has been initialized. If we declare a const variable as [Read more…] about Const and volatile Qualifiers in C

C Program for Return Value of main

By Dinesh Thakur

We have been writing “return 0;” as the last statement of every main function we have developed so far. But since main is the first function to start, no function calls main. So, the question that arises is – “Where does the return value of main go?” The value is returned and stored by the operating system and can be used to guide further actions by the operating system using shell scripts/batch files. [Read more…] about C Program for Return Value of main

C Program using a function declaration with an undefined parameter list

By Dinesh Thakur

#include <stdio.h>
#include <Stdlib.h>
int ff();
   int main()
   {
     clrscr();
     ff();
     ff(2);
     ff(2,3,4);
     return 3;
   }
      int ff(int i,int j,int k)
     {
               printf(" \n Hello world %d %d %d\n",i,j,k);
               return 3;
     } 

[Read more…] about C Program using a function declaration with an undefined parameter list

C Program for string encryption using Caesar cipher (shift encoding).

By Dinesh Thakur

C program to encrypt text using one of the simplest ciphers known as the “Caesar cipher.” In this encryption scheme, we shift all characters by a given offset. For example, if we use an offset of 4, every occurrence of ‘A’ will be replaced by ‘E’, every occurrence of ‘B’ will be replaced by ‘F’, and so forth. The encrypted text can be decrypted by using the reverse process if know the offset used for the encryption. [Read more…] about C Program for string encryption using Caesar cipher (shift encoding).

C Program for Rational Approximations for Real Numbers

By Dinesh Thakur

The C program computes the rational approximation to a given real number, i.e., given a real number val, the program computes a pair of integers N and D such that the fraction N/D is a good approximation to val. To do so, we use the following series of steps. [Read more…] about C Program for Rational Approximations for Real Numbers

C Program Calculation of Perfect Numbers

By Dinesh Thakur

Perfect numbers are positive integers which have the special property that the sum of all their factors equals the number itself, e.g., 6 = 1+2+3. The C program finds and prints out all perfect numbers less than 1000. [Read more…] about C Program Calculation of Perfect Numbers

C Program for GCD of Two Integers using Euclid’s algorithm

By Dinesh Thakur

The Greatest Common Divisor of two positive integers can be calculated iteratively by the following formula known as Euclid’s algorithm. You can see that this is a recursive definition with GCD(m,n) defined in terms of GCD(n,m%n).

[Read more…] about C Program for GCD of Two Integers using Euclid’s algorithm

c program to delete a substring from a text

By Dinesh Thakur

[Read more…] about c program to delete a substring from a text

c program to read a text, delete all the semicolons it has, and finally replace all ‘.’ with a ‘,’

By Dinesh Thakur

[Read more…] about c program to read a text, delete all the semicolons it has, and finally replace all ‘.’ with a ‘,’

C Program to Implement a Quiz Program

By Dinesh Thakur

It is a program for a basic quiz on the C Programming Language. It can be updated to turn into a quiz on any subject. It uses a function, switch case, and loop. [Read more…] about C Program to Implement a Quiz Program

C program to extract the substring from a given string

By Dinesh Thakur

[Read more…] about C program to extract the substring from a given string

C program to read, display, add, and subtract two distances. Distance must be defined using kms and metres

By Dinesh Thakur

[Read more…] about C program to read, display, add, and subtract two distances. Distance must be defined using kms and metres

C program to Allocate space dynamically for the array

By Dinesh Thakur

[Read more…] about C program to Allocate space dynamically for the array

Storage of Signed Integers

By Dinesh Thakur

To store signed integers, we need to reserve one bit for the sign of the integer. It is usual convention to use a 0 bit to indicate positive sign and a 1 bit to indicate a negative sign. [Read more…] about Storage of Signed Integers

c program to implement shell sort

By Dinesh Thakur

[Read more…] about c program to implement shell sort

c program to implement radix sort algorithm

By Dinesh Thakur

[Read more…] about c program to implement radix sort algorithm

c program to insert a number at a given location in an array

By Dinesh Thakur

[Read more…] about c program to insert a number at a given location in an array

C Program to Merge two Unsorted Arrays

By Dinesh Thakur

In this tutorial, we can learn c program to merge two unsorted arrays. In this c program, we enter two unsorted array elements are merge them into one array. [Read more…] about C Program to Merge two Unsorted Arrays

c program to delete a number from an array that is already sorted in ascending order

By Dinesh Thakur

[Read more…] about c program to delete a number from an array that is already sorted in ascending order

C program to delete a number from a given location in an array

By Dinesh Thakur

[Read more…] about C program to delete a number from a given location in an array

C program to implement binary search

By Dinesh Thakur

[Read more…] about C program to implement binary search

C program to insert a number in an array that is already sorted in ascending order

By Dinesh Thakur

[Read more…] about C program to insert a number in an array that is already sorted in ascending order

C program to find the array of integers contain a duplicate number

By Dinesh Thakur

[Read more…] about C program to find the array of integers contain a duplicate number

C program to sum the series

By Dinesh Thakur

C program to sum the series 1/12+1/22+1/32 [Read more…] about C program to sum the series

C program to sum the series 1+1/2 + 1/3…+ 1/n

By Dinesh Thakur

In this tutorial, we can learn C program to sum the series 1+1/2 + 1/3…+ 1/n. In this c program, we enter a number and and generate the sum of series. [Read more…] about C program to sum the series 1+1/2 + 1/3…+ 1/n

« Previous Page
Next Page »

Primary Sidebar

C Programming

C Programming Tutorials

  • C - History
  • C - Anatomy
  • C - Constants
  • C - Identifiers
  • C - Data Types
  • C - Libraries File
  • C - Header Files
  • C - Basic Language
  • C - Data Types Sizes
  • C - Header Files Importance
  • C - Escape Sequences
  • C - Main() Purpose
  • C - Program Procedure
  • C - Control Statements
  • C - Enumeration Constant
  • C - Add numbers
  • C - Return Statement
  • C - Avoid Goto
  • C - Command Line Arguments
  • C - Switch Case
  • C - Switch Case Limitations
  • C - getchar() and putchar()
  • C - Iteration Statements
  • C - Pass by Value and Reference
  • C - Structures and Unions
  • C - Structure
  • C - Dynamic Memory
  • C - Fgets and Fputs Functions
  • C - Gets() and Puts() Functions
  • C - Armstrong Number
  • C - Storage Classes
  • C - Fibonacci Series
  • C - Precision Setting
  • C - const Parameters

C - Variable & It's Type

  • C - Variables
  • C - Variable Lifetime
  • C - Static Variable
  • C - Register Variable
  • C - Global Variables
  • C - Auto Variables
  • C - Local Variables

C - Operator & Expressions

  • C - Operator
  • C - Boolean Operators
  • C - Bitwise Operator
  • C - Arithmetic Operators
  • C - Modulus Operator
  • C - Ternary Operator
  • C - Expressions
  • C - Arithmetic Expressions

C - Array

  • C - Arrays
  • C - Array Types
  • C - Array Characteristics
  • C - Static Arrays
  • C - Global Arrays
  • C - 3D Arrays
  • C - Dynamic Arrays
  • C - Pointer to 3D Arrays
  • C - Array Elements Hold
  • C - Arrays as Function Parameters
  • C - Accessing Matrix Elements
  • C - File Handling
  • C - Matrix Multiplication
  • C - Dynamic Memory Allocation

C - Searching & Sorting

  • C - Data Structures
  • C - Linear Search
  • C - Bubble Sort
  • C - Merge Sort
  • C - Linked List
  • C - Insertion Sort
  • C - Binary Search
  • C - Selection Sort
  • C - Quick Sort

C - Functions

  • C - Functions
  • C - Functions Advantages
  • C - Void Functions
  • C - Function Call
  • C - Default Return Value
  • C - String functions

C - Pointer

  • C - Pointers
  • C - Type Casting Of Pointers
  • C - Pointer Advantages
  • C - Pointers Initialization
  • C - Vectors and Pointers

C - Differences

  • C - C Vs C++
  • C - Formal Args. Vs Actual Args.
  • C - Keywords Vs Identifiers
  • C - Strings Vs Character Arrays
  • C - Address Vs Dereference Operator
  • C - Goto Vs longjmp
  • C - Declaring Vs Defining Variable
  • C - String Vs Array
  • C - Call by Value Vs Reference
  • C - Structure Vs Union
  • C - For Vs While loops
  • C - Compiler Vs Interpreter

C - Programs

  • C Program Standard Deviation
  • C Program Calculate Tax
  • C Program Sum Series
  • C Program Merge Arrays
  • C Program Euclid’s Algorithm
  • C Program Print Weekdays
  • C Program Sum of Digits
  • C Program Print a list
  • C Program Print Pythagorean
  • C Program Quiz program
  • C Program Display Table
  • C Program Print Comma-Separated
  • C Program Prints Prime Numbers
  • C Program for Print Integer
  • C Program Count Number
  • C Program Print Color Name
  • C Program Print Odd Numbers
  • C Program Calculate area
  • C Program for a Menu
  • C Program Add Two Vectors
  • C Program Array Addresses
  • C Program Division by Zero Error
  • C Program Compare two Dates
  • C Program Tower of Hanoi
  • C Program return 3 Numbers
  • C Program for Prime Numbers
  • C Program for Factorial
  • C Program for Palindrome

Other Links

  • C Programming - PDF Version

Footer

Basic Course

  • Computer Fundamental
  • Computer Networking
  • Operating System
  • Database System
  • Computer Graphics
  • Management System
  • Software Engineering
  • Digital Electronics
  • Electronic Commerce
  • Compiler Design
  • Troubleshooting

Programming

  • Java Programming
  • Structured Query (SQL)
  • C Programming
  • C++ Programming
  • Visual Basic
  • Data Structures
  • Struts 2
  • Java Servlet
  • C# Programming
  • Basic Terms
  • Interviews

World Wide Web

  • Internet
  • Java Script
  • HTML Language
  • Cascading Style Sheet
  • Java Server Pages
  • Wordpress
  • PHP
  • Python Tutorial
  • AngularJS
  • Troubleshooting

 About Us |  Contact Us |  FAQ

Dinesh Thakur is a Technology Columinist and founder of Computer Notes.

Copyright © 2025. All Rights Reserved.

APPLY FOR ONLINE JOB IN BIGGEST CRYPTO COMPANIES
APPLY NOW