Category Archives: C Language

C File Program to Save Records in a Binary File

“C File Program to Save Records” is a file handling program in C programming language. This program will open a binary file and save the records of students in it. If the file does not exist already, it is created. It will add one record at a time. After saving first record successfully in a… Read More »

Loading

Fibonacci Program in C Programming

What is Fibonacci Sequence Explain Fibonacci Series What are Fibonacci Numbers This program with title “Fibonacci Program in C Programming” is based on a special series in mathematics. The Fibonacci sequence is a series of numbers starting from first two numbers 0 and 1 by definition. Then every other number is the sum of  previous… Read More »

Loading

C Program Using Ternary Operator To Check Even Odd

“C Program Using Ternary Operator To Check Even Odd” This is a C program that uses conditional operator in C programming language to check whether a number is even or odd. Ternary operator is called conditional operator in C programming language. The syntax of ternary operator is as follows: (condition)? true-case-statement : false-case-statement; Example of… Read More »

Loading

Use Switch statement for simple calculator C Program

“Use Switch statement for simple calculator C Program” is a C program used to work as a simple calculator. This simple calculator performs only four basic arithmetic operations addition, subtraction, multiplication and division. This program uses switch statement to check the type of operator and calculates the needed operation. The result is presented to user… Read More »

Loading

Complete Prime Checker Function

“Complete Prime Checker Function” is a C program using functions in C programming language. Prime checker program will use an isPrime() function to check whether the given number is prime or not. isprime() function will take an integer parameter. It will return 1 or zero. isPrime() function will return 1 if the given number is… Read More »

Loading