C Program To Display Student Results

The C program to display student results demonstrates the working of conditional statement in the C language. The program takes student’s marks in percentage (%) as input , process the input value and displays the results (pass or fail) as output. The output depends on the conditional statement in the example program. Learn C programming … Read more

C Function that Implements Call-By-Reference

The main() function in a C program calls other functions. Some functions need arguments and some do not need any arguments. The efficiency of the program sometimes depends on what and how the arguments passed into the function. This program is written in Dev-C++ version 4 installed on a Windows 7 64-bit system, but you … Read more

C Program for Sum of First N Natural Numbers

The program adds first N natural numbers (starts from 1) and prints the sum in the console. We wrote this program using Dev C++ version 4.9.9.2 on a Windows 7 64-bit system.  You may try other standard C compilers to run the program with modifications. Learn following c programming concepts before you attempt this example … Read more

C Program To Compute Nth Fibonacci Number

The program computes Nth Fibonacci number using a technique called recursion and prints the results. A recursion is the ability of a procedure or function to call itself several times. You can write the program without recursion, but computer science students learn Fibonacci series as an introduction to recursion or recurrence relations. It is a … Read more

C++ Program Structure

C++ is a very popular programming language. Every C++ program has a general structure that it must follow. Here is common structure of a C++ program. Header Section The header section is used for Including header files Declaring global variables Declaring functions Defining constants You can divide C++ functions into two categories – Builtin functions … Read more

OS Swapping Processes

We have an intuitive understanding of process and process states from an earlier post now. If you want to know about process states and state transitions see link below. Process States in Operating System One of the states is the waiting state in which the process is waiting for some event or an I/O operation to … Read more

OS Process States

When a computer program runs but only a part of a program is running performing a specific task. This smallest unit of a program in execution is called a process. Technically, a process is not the smallest unit but some programs consist of threads which are smaller than a process. When there is no process … Read more

Finite Probability

Finite Probability is a very important concept in discrete mathematics. Before we begin let’s understand some basic terminology, that is important in understanding probability theory. Basic Terminologies Experiment  An experiment is some task you do and get an outcome, possibly from a set of different outcomes. Example, throwing a dice would result in a number between one to … Read more

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.