Skip to main content

Posts

Showing posts with the label variables in c

COMPLETE 'C' PROGRAMMING FOR BEGINNERS.

  COMPLETE 'C' PROGRAMMING FOR BEGINNERS.             If you have taken  CS or IT course and you don't know anything about programming or simply you have interest in programming then this blog is meant specially for you'll. In this blog I'll be discussing about the syntax, compilation, execution, datatypes, variables, which software to use... etc for C programming. So lets begin. INTRODUCTION:            As we all know C language is a high-level programming language which uses compiler to compile codes into binary language(computer language comprising of 1's and 0's) and  then into human readable language i.e. english language. It is  considered as the mother of all programming languages and was developed by Dennis Ritchie(computer scientist) in 1972 at Bell laboratories. If you learn C language completely, it'll be easy for you to learn other programming languages such as C++,C#,JAVA, PYTHON etc. SYNTAX: ...

INTRODUCTION TO VARIABLES IN 'C' LANGUAGE..

     INTRODUCTION TO VARIABLES IN 'C'.   VARIABLES:            While learning C programming you might have encountered the word variables. What are variables? Variables are names given to every defined value of a program. These names are given locations capable of storing temporary data within a program. This data is stored in the internal memory (RAM) of the computer. This data can be modified, stored or displayed whenever needed. The size of a variable depends upon the type of the data and the range of the datatype. The size of a variable varies according to the datatype.           For example, on a personal computer the size of an integer variable is 2 bytes, 4 bytes for float variable, 1 byte for character variable and for double variable is 8 bytes. Let me make this more simple. let`s take an integer variable i.e. int a,b,c; here integer has 3 variables a,b and c. As we saw above for a single integer va...