Type Casting in C
(type) expression;
(type) expression;
The C programming language is generally referred to as a high level language but we glance through the backend of C, i.e the working of C as a programming language...
4 minutes read.
Math functions in C: In the C programming language, the compiler allows the developer to perform mathematical operations through the header’s functions, represented by <math.h>. The <math.h> header defines various mathematical...
3 minutes read.
Typecast vs. typedef in C Typecast In the C programming language, converting the data type from one form to another is known as type casting or the type conversion. It is a...
5 minutes read.
Displaying table up to 10 #include <stdio.h> int main() { int num, i = 1; printf(" Enter any Number:"); scanf("%d", &num); printf("Multiplication table of %d: ", num); ...
1 minute read.
Random function in C In the C programming language, the rand() is a function used for Pseudo Random Number Generator (PRNG). The random number generated by the rand() function is not...
4 minutes read.
Ferror(): In C, the ferror() function checks assuming there is a blunder in the given stream. The ferror() function is utilized to check for the document blunder on given stream. A return...
4 minutes read.
The process of changing one data type to another in the C programming language is known as "type conversion." The type conversion method is only executed on data types that...
4 minutes read.
In the C programming language, the for loop is used to repeatedly iterate over a set of instructions or a section of code. It is frequently used to traverse array-based...
3 minutes read.
getch() is a pre-define or built-in function present in the conio.h library. It returns the given character immediately without waiting for the enter key to be entered. By using getch()...
3 minutes read.
Before understanding the square root program in C language, one must know about the square root of a number. A square root is a mathematical term. The square root of a...
5 minutes read.
Introduction Most aspiring programmers learn the C language as their first high-level programming language. The most flexible language utilized in every industry is, without a doubt, C. Even after 50 years...
9 minutes read.
Introduction to the calendar application We all are familiar with the calendar. It plays a crucial role in our daily life. We run toward the calendar whenever we want to know...
6 minutes read.
How to include graphics.h in code blocks? Graphics .h is a header that allows drawing lines, rectangles, ovals, arcs, polygons, pictures, and strings on a graphical window by giving access to...
6 minutes read.
A variable can be defined as a name allocated to a storage space that can be manipulated by our programs. Every variable in C arbitrates about the overall layout and...
5 minutes read.
What is Function? The function is a set of statements. It takes input and performs some computation to produce output. The process is a set of codes only achieved when it is...
3 minutes read.
C Math Library The <math.h> header defines various mathematical functions and one macro. Many functions are available in this library to take double as an argument and then return double as...
4 minutes read.
Mode is the highest occurring value or number in a given set of data elements. In a group of data values, a value that occurs most frequently is considered to...
3 minutes read.
Given a weighted graph, Kruskal's algorithm generates a spanning tree with the lowest possible weights. Start by creating an edge list for the given graph, including the weights. Sort the...
3 minutes read.
This is a flowchart that represents the process of executing the while loop in the C programming language.Generally, as we know there are three main components of while loop:1. The...
3 minutes read.
C Functions: A function is defined as a block of code that is used to perform some specific task. In functions, we use flower brackets ({}) which contain the set of programming...
5 minutes read.