Basic
Pointers
Operators
Control Statement
Loops
Function
Array
Sorting
Advanced
C programs
C is a widely used procedural and general-purpose programming language for system programming. Dennis Ritchie initially developed C between 1972 and 1973 at Bell Labs. American National Standard Institute (ANSI) later formalized this programming language in 1988. The initial purpose of developing the C programming language was to make utilities of the UNIX-based operating system. Many other computer programming languages have directly or indirectly taken/borrowed features from the C programming language. Program written in C can be very efficiently mapped to machine instructions, making C programming very popular for any embedded software application development that runs on a microcontroller.
To understand the C programming language, look at the below sample example code, where two age variables are taken as input and compared for age comparison.
Code:
#include <stdio.h>
int main()
{
int age1 = 100;
int age2 = 80;
if (age1 > age2)
{
printf("age1 is greater than age 2");
}
else
{
printf("age2 is greater than age 1");
}
return 0;
}
Output:
It would help to understand computer programming language methodologies like variables, conditions, looping, constants, operators, etc. Knowledge of any other programming language is an added advantage to learning this tutorial.
This tutorial is designed for software programmers who wish to understand the C programming language and apply C programming in their projects.
By signing up, you agree to our Terms of Use and Privacy Policy.
By signing up, you agree to our Terms of Use and Privacy Policy.
Valuation, Hadoop, Excel, Web Development & many more.
This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy