Introduction to C

 

Introduction to C

C is a very popular programming language because of the features it offers. Here are some of the features of C programming language.

1. Simple
C language is simple and easy to learn.

2. Portable
C is a machine independent language, which means a C program written one machine can run on another machine without requiring a code change.

3. Fast
C is a compiler based language and it supports only useful features which makes the compilation of C file fast.

4. Extensible
C program supports code modifications and addition of new code to the already existing programs, this makes C language extensible. It becomes easier to add new functionalities to the existing C programs.

5. Mid level programming language
C language provides the benefits of high level and low-level languages both. C allows manipulation of hardware just like low level language and allows high user end functionalities like high-level languages.

A simple C Program

#include <stdio.h>
int main() {
  printf("Hello World!");
  return 0;
}

Output:

Hello World!

C Tutorial

Learn and practice these tutorials in the given order.

Learn C Basics First

Decision Control Statements in C

  • If statement – Basic usage, flow and examples of if statements.
  • If-else statement – Use of If-else in a program. Flow diagram and examples.
  • Switch-case – How to use switch-case statements in C and what’s the role of break while using this control structure.

Loops in C

  • For loop – Examples, flow diagrams and use of for loop in C.
  • while loop – A guide on While loop usage with flow diagrams and examples.
  • dowhile loop – All about do-while loop along with differences between while and dowhile.

C – Loop control statements

  • Break statement – How and where to use break statement in a C program.
  • Continue statement – Its syntax, usage along with few C example programs.
  • Goto statement – How to use goto in a program and why it should be avoided while developing an application in C.

Array Tutorials in C

C – Strings

Functions in C

  • C functions – What’s the use of functions and how to implement them in a program.
  • Function Call by value method – In the call by value method the actual arguments are copied to the formal arguments, hence any operation performed by function on arguments doesn’t affect actual parameters.
  • Function Call by Reference method – Unlike call by value, in this method, address of actual arguments (or parameters) is passed to the formal parameters, which means any operation performed on formal parameters affects the value of actual parameters.

Structure

Structures in C – Complete guide for structures in C

Pointer in C Programming

File I/O

File I/O – Learn how to perform Input/Output operations on files in C. Also, get to know the handling of text/binary files in a program.

Operator Precedence table

Operator Precedence –  Includes various types of operators in C.

C Examples

C examples

Comments

Popular posts from this blog

Program to find the average of two numbers

Program to add two integer numbers