Category: Arrays and Structures

Multi-Dimensional Arrays in C Programming Language 3

Multi-Dimensional Arrays in C Programming Language

Let’s understand the concept of multi-dimensional arrays in C programming language. Although arrays with more than two dimensions are not commonly used, C does allow any number of dimensions to be declared. This is done by listing maximum size of all dimensions of the array. For example, the declaration:

declares a three-dimensional array. The first element in the array is designated as a[0][0][0] and the last element as a[3][9][5]. Thus, generally speaking, multidimensional arrays in C programming language are defined in much the same manner as one-dimensional arrays, except that a separate pair of square brackets are required for...

Structures in C Programming Language 32

Structures in C Programming Language

Structure is a special type of C data type. Structures contains a number of data types grouped together. Structures in C is one of the excellent functionality provided in C. Structures makes C Programming language easy and simpler up to certain extent. Structure is most widely used in Programming. Structures in C allows multiple data types to be grouped together. As a programmer I have used structures in C a lot and find this feature interesting too. Just go through this article and you too will find structures in C interesting. Let us suppose you want to store basic information...

Demo on Structures in C 11

Demo on Structures in C

The Structure is a special type of C data type. A structure contains a number of data types grouped together. Structure in C allows multiple data types to be grouped together. The below mentioned program is to demonstrate structures in C Programming Language.

Output:

Also See: Structures in C Programming Language

Sort array in descending order 16

Sort array in descending order

Write a program in C language which accepts integer values from user, sorts it in descending order and prints the integers in descending order.

Output: