C Programming Error Types – Runtime, Compile & Logical Errors

While writing c programs, errors also known as bugs in the world of programming may occur unwillingly which may prevent the program to compile and run correctly as per the expectation of the programmer. Basically there are three types of errors in c programming: Runtime Errors Compile Errors Logical Errors C Runtime Errors C runtime errors are those errors that… Read more →

C Type Conversion – Implicit & Explicit Type Conversion in C

When variables and constants of different types are combined in an expression then they are converted to same data type. The process of converting one predefined type into another is called type conversion. Type conversion in c can be classified into the following two types: Implicit Type Conversion When the type conversion is performed automatically by the compiler without programmers… Read more →

Hello World C Program

Hello World C Program

In this tutorial, we will write a very simple hello world c program which will print “Hello World!” on the screen. The source code with the basic structure of a c program is also given below: Hello World C Program Source Code Output C Program Structure Every c program consists of several building blocks known as functions which may include… Read more →

C Variables: Declaration & Initialization of C Variables

C variables are names used for storing a data value to locations in memory. The value stored in the c variables may be changed during program execution. Declaration of Variable Declaration of variable in c can be done using following syntax: data_type variable_name; or data_type variable1, variable2,…,variablen; where data_type is any valid c data type and variable_name is any valid… Read more →

Data Types in C: Primitive Data Types in C Language

Data types in C programming language enables the programmers to appropriately select the data as per requirements of the program and the associated operations of handling it. Data types in c language can be broadly classified as: Primitive Data Types User Defined Data Types, for example, enum, structure, union Derived Data Types, for example, array, pointers In this tutorial we… Read more →

C Program for Fibonacci Series

C Program for Fibonacci Series

C Program for Fibonacci Series using for loop, recursion and array along with the output is given below. About Fibonacci Series The Fibonacci series or Fibonacci numbers or Fibonacci sequence always consists of 0 and 1 as its first two numbers with each subsequent number in the series as the sum of the previous two numbers. Mathematically, the sequence Fn… Read more →

C Operators

C operators are used in programs to trigger an action i.e. to perform certain mathematical or logical manipulations. C operators are classified as follows: Arithmetic Operators Arithmetic operators available in c are as follows: Arithmetic Operator Symbol Description Example + Performs addition 1+1=2 – Performs subtraction 1-1=0 * Performs multiplication 2*2=4 / Performs division 10/2=5 % Performs modular division(Gives remainder… Read more →

C Tokens

In a passage of text, individual words and punctuation marks are called tokens or lexical units. Similarly, the smallest individual unit in a c program is known as a token or a lexical unit. C tokens can be classified as follows: Keywords Identifiers Constants Strings Special Symbols Operators C Keywords C keywords are the words that convey a special meaning… Read more →

Dennis Ritchie - Creator of C Programming Language

C Programming Language History, Importance And Standards

A very brief c programming language history for those interested to know when, where and by whom c language was developed and came into existence is given below. Brief C Programming Language History In 1972, Dennis Ritchie at the Bell Laboratories of USA developed C from ALGOL, BCPL and B using many concepts from these languages while adding many new… Read more →