C Programming

C Programs on Arrays and sortings

C Program to demonstrate single dimension array #include<stdio.h> #include<conio.h> main() { int a[10], i; clrscr(); printf(“Enter 5 elements for an array\n”); for(i=0; i<5; i++) { scanf(“%d”, &a[i]); } printf(“\t\t INPUT of an ARRAY\n”); for(i=0; i<5; i++) { printf(“\t\t\t %d\n”, a[i]); } getch(); } C Program to demonstrate multi dimension array [Sum of two Matrix Program] …

C Programs on Arrays and sortings Read More »

Share

Arrays and Functions

Array is a structure storing elements of similar data types sequentially in memory. Subscript Array is a structure storing elements of similar data types sequentially in memory (Index) is a variable through which the elements of the array are processed. Array size is maximum number of elements an array can hold. Rules for Arrays:- An …

Arrays and Functions Read More »

Share

Programming construct

An iteration or loop in a computer program is a set of statements that is executed repeatedly. C provides three iteration constructs:  While Do…while ForSyntax on while statement:- initialization; while(condition) { statement or body of the loop; increment/decrements; } Syntax on do..while statement:- initialization; do { statement or body of the loop; increment/decrements; }while(condition); Syntax …

Programming construct Read More »

Share

C Programming

Brief introduction to C Language:-  Languages like B, Combined Programming Language (CPL) and Basic CPL were used popularly. The B language used earlier was added with basic functionality of BCPL to create C language. Dennis Ritchie developed C in 1972 while working with Bell Laboratories. C was developed on unix operating system. UNIX operating system …

C Programming Read More »

Share
Share
Scroll to Top