Category: C Programming

Add comments in C 0

Comments in C Programming

In this article, I will explain how to add comments in C program. By the end of this article, you will learn how to add single line and multi-line comments in your C program. I also have a video version of this article. Scroll to the bottom of this article to view video version which includes detailed explanation along with hands-on example. Comments in C are used to explain or describe source code logic. There are 2 types of comments: Single line comment Multi-line comment Program will ignore whatever text we specify using comments during execution. Mostly, comments are used...

Program to find memory space allocation for data-types 1

Program to find memory space allocation for data-types

Whenever we declare a variable in C, compiler will allocate storage space in the computer’s memory. For example, if we declare a variable as “int”, 32-bit C compiler will allocate 4 bytes of memory space. Below is the program in C which displays memory storage space allocated by C compiler as per data-type.Following data types are covered in the below C program: int float short int double signed int unsigned int long int long long int double long double signed short int signed long int unsigned short int unsigned long int unsigned long long int char signed char unsigned char...

How to set-up eclipse for C Programming - Install and setup Eclipse for C 2

How to set-up and install eclipse for C/C++ programming

In order to write a C program and execute the code, we need a software that allow us to write, compile and execute the C Programming code. There are many licensed software available in the market which will allow you to write and execute C programs. However, you will have to pay in order to use the licensed software. In this article, we will learn how to install and set-up open source software Eclipse for C/C++ programming. We will follow the below steps to install and set-up free Eclipse for C programming. In order to download the free version of...

why learn C programming 3

Why learn C programming and C++ programming & How to

C Programming is considered as one of the best and easy to learn programming language. C programming was introduced many decades ago and still it is one of the most popular languages in the programming world. When I started with programming, I had a question in mind – How to learn programming? There were many programming languages available for me to start with, like C, C++, Java, C# and so on. To be frank, I had started with Java programming. Initial few says were awesome. Started with an introduction to Java, then started with java basics which included statements, loops,...