Skip to content

Category Archives: C Language

This article focuses on discussing the following topics in detail- Formatted I/O Functions. Unformatted I/O Functions. Formatted I/O Functions vs Unformatted I/O Functions. Formatted I/O… Read More
A system() call is a way for the programs to interact with the operating system. It is used to execute a command within a process.… Read More
Introduction to Identity Matrix :  The dictionary definition of an Identity Matrix is a square matrix in which all the elements of the principal or… Read More
Two pointers is really an easy and effective technique which is typically used for searching pairs in a sorted array.Given a sorted array A (sorted… Read More
Given a Linked List of length n and block length k rotate in a circular manner towards right/left each block by a number d. If… Read More
Pre-requisite: Structures in C A nested structure in C is a structure within structure. One structure can be declared inside another structure in the same… Read More
Pre-requisites: Header files in C/ C++ and its uses The difference between the two types is in the location where the preprocessor searches for the… Read More
Pre-requisite:Bitwise Operators in C/ C++Bitwise Operators in Java The bitwise complement operator is a unary operator (works on only one operand). It takes one number… Read More
Given a square matrix of order n*n, you have to interchange the elements of both diagonals. Examples :   Input : matrix[][] = {1, 2, 3, 4,… Read More
Given a matrix A and a matrix B, their Kronecker product C = A tensor B, also called their matrix direct product, is an matrix.  A tensor B… Read More
Given a singly linked list, write a function to swap elements pairwise. Input: 1->2->3->4->5->6->NULL Output: 2->1->4->3->6->5->NULL Input: 1->2->3->4->5->NULL Output: 2->1->4->3->5->NULL Input: 1->NULL Output: 1->NULL For example, if the… Read More
Write a function that searches a given key ‘x’ in a given singly linked list. The function should return true if x is present in… Read More
Write a function to count the number of nodes in a given singly linked list. For example, the function should return 5 for linked list… Read More
Given an unsorted array and a number n, find if there exists a pair of elements in the array whose difference is n. Examples:   Input: arr[]… Read More
Pre-requisites: File Handling in C++ So far the operations using the C program are done on a prompt/terminal that is not stored anywhere. But in… Read More

Start Your Coding Journey Now!