C

Relational Operators in C

Relational Operators in C

In this article, we would discuss relational operators in C programming language. With the help of relational operators, we get to compare two values. Accordingly, as per the instructions specified, we get the outcome as either true/false or 1/0. Relational operators basically helps us reach a decision. Besides, we mostly use them in loops. For …

Relational Operators in C Read More »

Enumeration in C

Enumeration in C

In this article, we would discuss enumeration in C. If we intend to have a variable, which stores value from a pre-defined set of values. Then, that is where enumerations comes in handy. Enumerations are way to define data types. We can have both named as well as unnamed enumeration data types. We will discuss …

Enumeration in C Read More »

getchar() and putchar() in C

getchar() and putchar() in C

In this article, we would discuss the two standard library functions i.e. getchar() and putchar() in C. getchar() helps us read the next input character whereas, putchar() writes a character. We emphasize that, both these functions read and write a character every time they are called. We will understand these functions with the help of …

getchar() and putchar() in C Read More »

Convert Fahrenheit to Celsius through a C program

Convert Fahrenheit to Celsius through a C program

In this article, we would discuss how to convert Fahrenheit to Celsius through a C program. But before that, a bit about scale of temperatures. There are three most common units to measure temperature. These are: Fahrenheit, Celsius and Kelvin. The Customary unit of measurement of temperature is Fahrenheit, proposed by Polish Physicist Daniel Gabriel …

Convert Fahrenheit to Celsius through a C program Read More »

Your first C program in Ubuntu

Your first C program in Ubuntu

C, programming language was designed by Dennis Ritchie. We have already discussed how to compile a C program in Ubuntu distribution. In this article, we would focus on how to write your first C program. Open a text editor in terminal, we have used nano – nano first-code.c And, insert the following code in it …

Your first C program in Ubuntu Read More »

Compile C Program in Ubuntu

Compile C Program in Ubuntu

In this article, we would focus on how to compile C Program in Ubuntu distribution. C is a programming language designed by Dennis Ritchie. It was first released in the year 1972. The programming language can be implemented on multiple platforms. We would first write a basic C program and thereafter, compile it through GCC …

Compile C Program in Ubuntu Read More »

Scroll to Top