top of page
Writer's pictureRosario Riley

Array in C Programming Examples with Output

What is C Language?

C is a high level language and structured programming language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell Labs. C programming language features were derived from an earlier language called “B” (Basic Combined Programming Language – BCPL).


C is very popular because of Reliability, Portability, Flexibility, Interactivity, and Modularity. C is a middle level programming language. Main feature of C is we can divide programme into the smaller modules which increases efficiency of programme.




What is an array?

An array is a unique data structure group of elements (values ​​+ variables), each of them can be identified by array elements or key value.

Example:-

#include <stdio.h>

void main()

{

int num[] = {10,20,30,40,50};

printf("\nArray[0]=%d",num[0]);

printf("\nArray[1]=%d",num[1]);

printf("\nArray[2]=%d",num[2]);

printf("\nArray[3]=%d",num[3]);

printf("\nArray[4]=%d",num[4]);

}

Output:-

Array[0]=10

Array[1]=20

Array[2]=30

Array[3]=40

Array[4]=50

C contains following topics at TCCI:

Introduction to C, Basic Syntax, Token, Data Types and Variables, Constants, Literals, Storage class, Operators, Loop Controls, For Loop, While Loop, Do-While Loop, Decision Making, Arrays, String, Function, Pointer, Structure, Union, Type Casting, Recursion, Files, Command Line Argument.

Course Duration: Daily/2 Days/3 Days/4 Days

Class Mode: Theory With Practical

Learn Training: At student’s Convenience

TCCI computer coaching institute is located in Bopal-Ahmedabad and ISCON-Ambli-Road in Ahmedabad.

For More Information:

Call us @ +91 9825618292

Recent Posts

See All

Comments


bottom of page