C and C++ Scripts

C and C++ Scripts

The computer world boasts of numerous programming languages which are suited to meet different needs and requirements of different programmers for different programs. C and C++ are the preferred languages for gamers where C++ is considered to be the child of the C language. C language is basically a language that is famous for is small and compact size which is executed at top speeds. Besides gaming, C and C++ are used in scene analysis, by computer scientists and in many other applications.

Â

Programs created using C and C++ are created using specific codes for its different functions. You find basic modules that are used here for the accomplishment of different tasks. C language is considered to be a ‘task oriented’ language where its functions form the fundamentals of the program. In the case of C++, it is more of a language that is more object oriented. Here programs are designed keeping objects in mind. In addition to this, there may also be some functions in C++ that are more task oriented.

Â

You can tell a C and C++ program when there is at least one function, which is called the main function, which is found there. It is at the starting point of this main that you can find the beginning that is needed to execute the program. One important feature of C and C++ is that the use of global variables is optional here. In fact, it is generally avoided to use global variables. When the computer comes across a C and C++ program, it only recognizes the keywords found here. Whatever else there may be here usually needs a copy or a prototype.

Â

The important part of C and C++ languages is its variables. The variables of the language work as the identifiers for the different memory locations in the program. All C and C++ programs perform its tasks following two basic tasks; it first works at transferring the data found in a particular location in the memory bank to another location. The next part lies in its adding of variables.

Â

You find four important variables both in C and C++ which are the int integer 4 bytes and short integer 2 bytes, the float real 4 bytes and double real 8 bytes, the char where you find one character of 1 byte is found and strings where you find character strings between 2 characters and strings of numerous characters. There are some modifications to these variables and sometimes, it is also possible to declare independent data types.

Â

Declarations in C and C++ are statements that inform the compiler of the usage of a certain variable by the program. However with this declaration, there is no specification of any memory for use by the variable. The definitions in C and C++ are statements that help create variables physically. Here you find that the variables get some allocation in memory of the program.

Â

Â