C For Beginners

   »    Learn C syntaxes

Computer Education, Training & Tutorial Resources - ComputerEducationWorld.com
Home » Free Educations » Free Programming Training » C Programming » C For Beginners »

int is used to define integer numbers.

{
        int Count;
        Count = 8;
    }

 Integers are whole numbers with a machine dependent range of values. C has 3 classes of integer storage namely short int, int and long int. All of these data types have signed and unsigned forms. A short int requires half the space than normal integer values. Unsigned numbers are always positive and consume all the bits for the magnitude of the number. The long and unsigned integers are used to declare a longer range of values.  (more…)


• • •
 

 for loop is used where the loop will be traversed a fixed number of times.

for  (expression1; expression2; expression3)
     {

block of statements;

}

1) expression1 : this allows you to initialise a variable.

2) expression: this gives the condition to loop.If it suppose to true then body of loop  containing multiple statements will execute otherwise loop terminated. (more…)


• • •
 

We can define constants of any Data type by using the #define compiler directive. Its syntax is simple as under :
#define SALARY_MIN 1500
#define SALARY_MAX 15000 (more…)


• • •
 

#include < stdio.h>

void main()
{
    printf(”\nHello World\n”);
}
The statement above printf(”\nHello World\n”);  is simple that it display the string hello world. But what about the \n part? the explanation for this question is given below. (more…)


• • •
 



captcha PHP Script Free PHP captcha script free php
Website Design by WebWalas.com