Friday, 5 August 2011

RULES FOR WRITING C PROGRAM


RULE 1:---Each instruction given by you must be written in separate statement so each C program comprise of series of statements.

RULE 2:---Sequence of statements must be in a order in which we want to run the program i.s, we write the statements in an order in which u want to take the work form your program written.

RULE 3:---Must insert space b/w the words it increases the readability of the of the program so that we can easily finds the errors.

RULE 4:---All statements must be in small letters

RULE 5:---It is a free form language i.e, not have a specific rules for position of the statements.

RULE 6:---Every C statement must end with ;..it is called terminator






RULES FOR CONSTRUCTING REAL CONSTANTS IN C

RULE 1:---A real constant must at least consist of 1 digit

RULE 2:---It must have a decimal point

RULE 3:---It could be either a +ve or -ve

RULE 4:---by default it is +ve

RULE 5:--- no space or commas are allowed between them




RULES FOR CONSTRUCTING INTEGER CONSTANTS

RULE 1:---An integer constant must consisted of 1 digit.

RULE 2:---It is without the decimal point

RULE 3:---It must be either +ve or -ve

RULE 4:---if no sign is placed then it is considered as an +ve

RULE 5:---no commas are allwoed

RULE 6:--- range of integers is from -32768 to 32767.






Thursday, 4 August 2011

TYPES OF CONSTANTS IN C PROGRAMMING

C constant is divided into 2 categories

1..primary constants
2..secondary constants

 these constants are further categorized into following catagories







Wednesday, 3 August 2011

CHAPTER 1: 1.1...GETTING STARTED WITH C

Learning any computer language is same like learning English or Arabic language....just for a moment think what you have to do in order to learn any language like English u must 1st try to know the Alphabets then made words from that alphabets and then make sentences after that you are perfect and ready to write paragraph in English...in the similar way to learn any language specially C is same as like English you 1st have to know the alphabets, digits and special symbols then you are able to biuld constant variable and keywords after that you are able to write any instruction in C...and by combining that instruction u are able to write a complete program Above fig show you the same scenario.

ASSIGNMENT COMMANDS IN PROGRAMMING?

It is a fundamental feature of computer that it stores data into it is possible to put and easily be recovered in short computer can overwrite data and then recover it from there when we needed this concept is the ASSIGNMENT COMMAND concept.

the simplest form of assignment

                  x : =3
                  x : =y+1
example 1 set the value of "x"  to 3 i.e, it overwrite x with 3.....2nd example set the value of "x" 1 more then the value of "y".

assignment is the most important concept of computer programming it is the basic for the programmer.

Think for a minute that u can replace every thing from your desire things and then use it again and again without altering that location......















CREATING A PROJECT IN VISUAL BASIC

STEP 1:  From the Windows Start menu, choose Microsoft Visual Basic 2005 Express Edition.

STEP 2: On the File menu, click New Project.

STEP 3:  Select Windows Application and click OK.