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.

Tuesday, 2 August 2011

WHAT IS A METHOD IN PROGRAMMING?

In programming, method is a subroutine with a class.method tell us the behavior exhibited by the instances of the class during the run time.There are 3 types of special methods
1) constructor
2) destructor
3) copy assignment operator

these are the special type of methods and they are language dependent. they may be built in the compile.

TYPES OF PROGRAMMING

there are several types of programmings

1) hardware programmin
2) software programming
3) game programming




WHAT IS A OBJECT IN PROGRAMMING?

Stop for a min..and observe your surrounding world..you immediately may eye on your switch board your fan or may be on your door...these are the objects for you but posses the different characteristics...in software development the "object" is the same thing like these which have same characteristics and used for different purposes..:D

Monday, 1 August 2011

WHAT IS A CLASS IN PROGRAMMING??

WOOOW ....class...it's not a biology or computer class but it's a class which is used by programmers for programming...it is the method to construct something or a pattern....for example if a builder wants to build up a building then 1st he decides how to adopt a method and build a building.....You are building a written outline of what looks like a lot of class. There are indications that, written in the Java language must follow the rules of this outline. In computer programming, and these areas are called grammatical rules of language.     

WHAT IS A FUNCTION IN PROGRAMMING?

If u want to perform a specific task then you 1st decide what to do and then decide how to do......that specific task is known as function for you....you are capable of performing a several tasks depending upon your abilities...each task is a separate function for you...e.g, your mom said to u to bring a fruits and after that she tell you to bring some vegetables for lunch then you perform 2 different functions but in 2 different times..in short ."FUNCTION IS A SET OF INSTRUCTIONS WHICH IS USED TO PERFORM A SPECIFIC TASK".....in other words consider a function as a black box...shocking..:O...BLACK BOX hmmm....but don't be excited...this black box is a simple device which takes some inputs and produces your desires output...now we have one more definition of function....A SET OF INSTRUCTION WHICH WILL TAKE SOME INPUTS AND PRODUCES THE OUTPUT ACCORDING TO THE INSTRUCTIONS ASSIGNED TO IT.......

STARTING WITH PROGRAMMING

computers are not very intelligent to do work for you such as searching on internet and clean your house etc...computer not obey your orders and don't do what you want...but they can do by providing them a set of instruction which is called a programming languages which is a set of instruction given to computer to perform a specific tasks..you can done anything from computer by providing them a set of instruction in the form of programming language....:D