# C Programming

## C Program to Calculate Loss Percentage

Let’s have a glance at how to find the loss percentage by using the C programming language. How to calculate the loss percentage? We can use the following formulae to calculate the loss percentage. Loss = Cost Amount – Sold Amount Loss Percentage = (Loss * 100/Cost Amount) C Program to Calculate Loss Percentage #include<stdio.h> …

## C Program to Determine the Quadrant of the Cartesian Plane

Let’s have a look at how to determine the Quadrant of the Cartesian Plane. This C Program read the x and y coordinates of the vertex and also read a Length of aside. C Program to Determine the Quadrant of the Cartesian Plane #include <stdio.h> void main() { int co1,co2; printf(“Input the values for X …

## C Program to Find Area of Triangle Using Function

In this C program, we will have a look at how to find the area of a triangle using the function in the C programming language. How to find the area of the triangle? We will use Heron’s or Hero’s formula to find the area of the triangle. Heron’s or Hero’s formula: Area of triangle=sqrt(s(s−a)(s−b)(s−c)) …

## Simple Stack Program in C Programming Language

Have you just started learning C programming and wondering how to implement stack? Let’s have a look at the simple stack program in the C programming language to understand the concept in a clear way. Simple Stack Program in C Programming Language #include<stdio.h> int stack,choice,n,top,x,i; void push(void); void pop(void); void display(void); int main() {    …

## Operators in C Programming Language

In this section of the C tutorial, we will learn about operators in C programming language and its types. What are operators in the C programming language? Operators in C programming language is used to perform logical and mathematical operations. Types of Operators In C Programming language the types of operators are as follows: Arithmetic operators It is used …

## List of Header Files in C

Header Files in C programming Languages are defined in the below mentioned table. List of Header Files in C <setjmp.h> It declares the macrossetjmpandlongjmp, which are used for non-local exits. <stdbool.h> It defines a boolean data type. <fenv.h> It defines a set of functions for controlling floating-point environment. <math.h> It defines common mathematical functions. <stdio.h> …

## Why Learning C Programming is a must?

Learning C programming has many benefits, but the most important thing it allows us to understand the underlying structure of how things work? C is often known as the mother of all languages because it was centered on so many other languages. Although C is simple, it is one of the most powerful languages ever …

## Average of 3 Numbers Program in C

In this C programming tutorial, we will learn how to find the average of 3 numbers with the help of the C programming language. What is an average of Numbers:   The Sum of all the numbers divided the number is said to be the average of the numbers. In short, It is SUM/COUNT. C Program to Find the Average …

## C Programming Interview Questions with Answers

In this article, we’ll discuss the 50 most frequently asked C programming interview questions during technical interview rounds by various companies. The following C interview questions cover the level from easy to advanced. Even if you are a beginner in C, these hard questions for programming conversation in C will help you better understand and …

## C Command Line

The command line argument is the parameter given to the program after it was called. The command line argument is an important concept in C programming. It is mainly used when you want to control your program from outside. Command line arguments are passed to the main () method. Command Line Argument Properties: They are …