Tag Archives: Function

C program to create and include custom header file

Write a C program to create and include your custom header file. How to create and include your own header file in C programming. C program to include another C program and custom header files.

Continue reading C program to create and include custom header file

Queue implementation using linked list, enqueue and dequeue in C

Write a C program to implement queue data structure using linked list. In this post I will explain queue implementation using linked list in C language.

In previous post, I explained about queue implementation using array. Here, I will explain how to implement a basic queue using linked list in C programming. Along with I will explain how to perform enqueue and dequeue operations on Queue in C language.

Continue reading Queue implementation using linked list, enqueue and dequeue in C

Queue implementation using array, enqueue and dequeue in C

Write a C program to implement queue, enqueue and dequeue operations using array. In this post I will explain queue implementation using array in C programming. We will learn how to implement queue data structure using array in C language. And later we will learn to implement basic queue operations enqueue and dequeue.

Continue reading Queue implementation using array, enqueue and dequeue in C

Stack implementation using linked list, push, pop and display in C

Write a C program to implement stack data structure using linked list with push and pop operation. In this post I will explain stack implementation using linked list in C language.

Continue reading Stack implementation using linked list, push, pop and display in C

C program to multiply two matrix using pointers

Write a C program to multiply two matrix using pointers. How to input and multiply two matrix using pointer in C programming. Logic to multiply two matrix using pointer in C.

Example

Input

Input elements of matrix1:
10 20 30
40 50 60
70 80 90
Input elements of matrix2:
1 2 3
4 5 6
7 8 9

Output

Product of matrices is :
300 360 420
660 810 960
1020 1260 1500

Continue reading C program to multiply two matrix using pointers

How to access two dimensional array using pointers in C programming?

How to access two dimensional array using pointers in C programming? Write a C program to input and print elements of a two dimensional array using pointers and functions.

Example

Input

Input elements in 3x3 matrix: 
1 2 3
4 5 6
7 8 9

Output

Elements of 3x3 matrix: 
1 2 3
4 5 6
7 8 9

Continue reading How to access two dimensional array using pointers in C programming?