.:: Welcome To My Personal Blog ::.
Showing posts with label C. Show all posts
Showing posts with label C. Show all posts

Sunday, July 3, 2011

Programming with C Tutorial - Part 2

Variables and Arrays :



A variable is an identifier that is used to represent a single data item i.e. a numerical quantity or a character constant. The data item must be assigned to the variable and this will then be easily accessible from the program by referring the variable name. A simple example of declaring and using variables is given below :
int a, b, c;
char d;
float e, f; 
a = 1;
b = 2;
c = 3; 
d = 'a'; 
e = 4.01;
f = 5.02; 
c = a + b;

Friday, April 22, 2011

Programming with C Tutorial - Part 1

Now-a-days, C is the basic language to learn programming. To learn programming using C is so much easy. Here, the basic things and fundamentals of C programming will be described. Hope it will help the beginners.

C Character Set:

C uses the uppercase letters A - Z,  the lowercase letters a - z,  the digits 0 - 9, and certain special characters
as building blocks to  form basic  program elements (e.g., constants, variables, operators, expressions, etc.).
The special characters are -
+     -     *     /     =     %     &     #     !     ?     ^     "     '     ~     \ 
|     <     >     (     )     [     ]     {     }     :     ;     .     ,     _      (blank space)

Popular Posts