Skip to main content

A STEP TOWARDS PROGRAMMING

 How to start with C programming for beginners?



Hi guys ,I'm from  Master Programming and in this post I'm going to tell you that how you can learn C programing just in few minutes .Now after watching this content ,you will be able to make any program related to C programming just like swapping of two numbers, adding two numbers, Fibonacci series and many more.

So, don't miss this opportunity and learn programming till end in very easy steps. Without wasting our precious time we should start learning!

So guys, first and important step is to install the software, I am mentioning some of the names of software which are free to download :
1.Dev C++
2.Code::Blocks
3.Visual C++ 2010 Express
4. Net-beans
5. Sublime Text Editor and many more.
But as a beginner I will recommend you to use only Dev C++ as it is the simple software to operate. And the guy who is at the first step of his coding can easily understand the working of Dev C++.
Let's Start With Some Background of C:
It was designed and written by Dennis Ritchie in 1972 at AT&T's Bell laboratories of USA.
Main characterstics of C language are:
  • Small size
  • Extensive use of function calls
  • Loose typing - unlike PASCAL
  • Structured language
  • Low level (Bit-Wise) programming readily available
  • Pointer implementation - extensive use of pointers for memory, array, structures, and functions.
  • C helps in developing structured programs.

CHARACTER SET

Like every language, C also has its character set. A character may be a letter, alphabet, digit, or any other symbol which is generally used to form meaningful words ,numbers ,expressions. 

KEYWORDS

C generally contains 32 keywords that are predefined ( means you can't use them for your own name purpose) . All keywords are written in lowercase ( do not starts with capital letter) .They are as following:

CONSTANTS

A constant is that quantity which remains unchanged during the execution f program. C supports many types of constants;
1.NUMERIC CONSTANT
2.CHARACTER CONSTANT

NUMERIC CONSTANT

This constant is further divided into other two types:
1.INTEGER CONSTANT
2.REAL CONSTANT

INTEGER CONSTANT

This type of constant refers to the constant without the decimal. Example 
s of integer constant are 12,0,33,678 etc.

REAL CONSTANT

They are also known as floating constant( floating means decimals) . Examples of floating constants are 12.2,0.003,234.5 etc.
There is another type of constant also known as EXPONENTIAL CONSTANT
Under this constant all the exponential value are placed.
Examples of  0.5e3,1.2e7 etc.

SINGLE CHARACTER CONSTANT

A single character constant always contains a single character . Example of single character constant is 'a', 'B', 'e' etc.

STRING CONSTANT

A string constant contains the combination of many single character joined together. Example of string constant is as following:
"mine","2002" etc.

VARIABLES

A variable is a data name that is used to store a data value. Their are some of the naming rules for a variable:
1. A variable can consist of  letter, digits but cannot start with underscore(_).
2.It should not start with digits.
3.keywords and not allowed.
4.The uppercase and lowercase variables will be treated different(Like SUM is different from sum).
Examples of variables are: sum , average etc.


Structure of a C program • 
Every C program consists of one or more functions. – One of the functions must be called main. – The program will always begin by executing the main function. • Each function must contain: – A function heading, which consists of the function name, followed by an optional list of arguments enclosed in Dept. of CSE, IIT KGP followed by an optional list of arguments enclosed in parentheses. – A list of argument declarations. – A compound statement, which comprises the remainder of the function.

I want to tell you guys that I will upload all the necessary link's in the description . Remember to drop your comments , questions and doubts below . And will se you in the next ones with new and interesting content.Master's








Comments

Popular posts from this blog

HOW TO PLANT ROSES????

  Rose is undoubtedly the 'Queen of Flowers'. If you have a passion for gardening and loveflowers then I am sure you have always wanted to grow roses in your garden. Some newbie gardeners including me, a fewyears ago used to think rose is one of the most difficult shrubs to grow. This is actually a misconception. Anybody can grow roses just like any otherplant. All you have to do is follow some simple tipsand tricks on how to grow roses correctly. In this episode let's list out the 10 usefulrose plant care tips one by one. Please watch it till the end as some of thesetips might surprise you with few bonus tips at the end. Before we start make sure you have subscribedto our channel along with the bell notification. 10. Bare Root Roses or Container Roses? You can purchase roses already potted in soilthats container roses or as dormant bare-root plants . If you are a beginner, container roses isthe best option, because they are easy to plant and they establish quickly. If you ...

WHY 5G?????......................

  Hiii,guy's I isha welcomes you all in my new post...The Internet of Things or iotis influencing our lifestyle from the way we react to the way we behave.From air conditioners that you can controlwith your smartphone to Smart Cars providingthe shortest route or your Smartwatch which is trackingyour daily activities. IoT is a giant network with connected devices.These devices gather and share data abouthow they are used and the environmentin which they are operated. It's all done using sensors, sensors are embedded in every physical device. It can be your mobilephone, electrical appliances Pecos barcode sensors traffic lights and almosteverything that you come across in day-to-day life. These sensorscontinuously emit data about the working stateof the devices, but the important question is how do they sharethis huge amount of data, And how do we put this data to our benefit iotprovides a common platform for all these devicesto dump their data. And a Common language for all the ...

BASIC STRUCTURE OF C++ PROGRAM

                       Structure of a program  Probably the best way to start learning a programming language is by writing a program. Therefore, here is our first program:  // my first program in C++  #include <iostram> using namespace std;  int main () {  cout << "Hello World!";  return 0; }  Hello World!  The first panel shows the source code for our first program. The second one shows the result of the program once compiled and executed. The way to edit and compile a program depends on the compiler you are using. Depending on whether it has a Development Interface or not and on its version. Consult the compilers section and the manual or help included with your compiler if you have doubts on how to compile a C++ console program. The previous program is the typical program that programmer apprentices write for the first time, and its result is the printing on screen of the...