Author: learnconline

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,...

Introduction to C programming 97

Introduction to C Programming Language

C programming is a language developed by AT & T’s Bell Laboratories of USA in 1972. It was designed and written by a man named Dennis Ritchie. C language is reliable, simple and easy to use. It has survived for more than 3 decades. This language is a base to learn different programming language. If you want to learn C++ or JAVA, without the knowledge of C, it becomes very difficult to learn these programming languages. Many major components of popular operating systems like Windows, UNIX, LINUX is still written in C. Nothing beats C language in terms of speed of...

C Programming Constants, Variables and Keywords 53

Variable, Constant and Keyword in C

Variable, constant or keyword in C can be formed from any combination of Alphabets, Digits and Special Symbols. A constant in C programming is an entity whose value does not change throughout the program execution. A variable in C is an entity whose value keeps on changing throughout the program execution. However, it’s not a rule that the value of the variable will change. A variable in C value might remain same throughout the program execution. However, the main difference between variable and constant in C is that we can’t change the value of constant in between the program, but...

Learn C - understanding c programming 47

Learn C with help of an example

In this article, we will learn C by going through the below program and understanding each line of C code in detail. 1) /* 2) Program: 3) Addition of two numbers 4) */ 5) //Here it starts 6) #include<stdio.h> 7) #include<conio.h> 8) Void main() 9) { 10) int a, b, c; 11) /*Assign the values to the variable a and b */ 12) a = 5; 13) b = 4; 14) /*Perform addition of a and b */ 15) c = a + b; 16) printf(“\nAddition of a and b is %d”, c); 17) } Let us learn C by...

c programming write text 2

Program to write a text to a file

We will write a program in C that will accept a string from the user and write the string in a file. In this program, we will use fopen function in order to open a file. We will also use fputs function which will write a string to a file. Below is the program: #include<stdio.h> #include<conio.h> void main() { char *str; FILE *fp; //Open the file in write mode fp = fopen(“write.txt”, “w”); printf(“Enter a string: “); gets(str); //write string in a file fputs(str, fp); getch(); } C Programming is brought you by