Posts

C++ programming

  C++ programming C++  is a middle-level programming language developed by Bjarne Stroustrup starting in 1979 at Bell Labs.  C++  runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX. This  C++  tutorial adopts a simple and practical approach to describe the concepts of  C++  for beginners to advanded software engineers.   It can be used to develop operating systems, browsers, games, and so on. Hello World using C++ #include <iostream> using namespace std ; // main() is where program execution begins. int main () { cout << "Hello World" ; // prints Hello World return 0 ; } Applications of C++ Programming As mentioned before, C++ is one of the most widely used programming languages. It has it's presence in almost every area of software development. I'm going to list few of them here: Application Software Development - C++ programming has been used in developing almost a...

Types Of Function

                                                             CATEGORY OF FUNCTION 1.Library function 2.Userdefined function LIBRARY FUNCTION It is also called predefined function or built-in or system define or fundamental or intrinsic function.This type of function is predefined by the system we cannot modify in this type of function.It has limited task.A user can only used the function but cannot change them.It means than user cannot understand the internal working of these function. For example: printf(),scanf(),clrscr(),getch() etc. NOTE: Whenever we use libray function in our program then the related header file must be included. USER-DEFINED FUNCTION The functions which are designed according to the requirement user are called User-defined function .The user can modify this type of function there task is not lim...

FUNCTION IN C

                                                               FUNCTION Afunction is a group of statements that together perform a task.Every C program has at least one function, which is main(), and all the most trivial programs can define additional functions. Afunction declaration tells the compilar about a function's name, return type, and parameters.A function definition provides the actual body of the function. The C standard library provides numerous built-in functions that your program can call.For example strcat() to concatenate two strings, memcpy()  to copy one memory location to another location, and many more functions. Why we need functions in C Functions are used because of following reasons – a) To improve the readability of code. b) Improves the reusability of the code, same function can b...

Input devices

Image
                  Input devices                     Keyboard Keyboard is the most common and very popular input device which helps to input data to the computer.The layout of the keyboard is like that of traditional typewriter, although there are some additional keys provided for performing additional functions.                           Mouse Mouse is the most popular pointing device.It is a very famous cursor control device having a small palm size box with a round ball at its base, which senses the movement of the mouse and sends corresponding signals to the cpu when the mouse button are pressed.                   Scanner            Scanner It is an input device, which works more like a photocopy machine.It is used when som...

Constant in C

Image
                    Constant in C Constant The constant in  C are available to the values which do not change during the execution of the program. There are several types of constant in C: a.Integer Constant 5,10,15......., these are the sequence of the number from 0(zero) to nine without decimal point or fractional part or any other symbols. b.Real Constant Real Constant are often known as floating point constant. Integer constant are unfit to represent floating value,then it is represented by real constant. c. Character Constant Character Constant has two types as follows: 1. Single Character Constant A character Constant is a single character. They are also represented with a single digit or a single special symbol or white space (blank space) enclosed within a pair of single quote(") marks. 2.String Constant String Constant of character in closed within a double quote mark("....").The string may be c...

Branching Statement

Image
        Branching Statement in C Conditional Branching The Conditional Branching Statement help to jump from one part of the program to another depending on whether a particular condition is satisfied or not.These desion control statement include: 1.Branching 2.Jumping 3.Looping 1.if statement a.Simple if statement b.if else statement c.nested if statement d.else if or ladder if 2.Switch statement If Statement The if Statement is the simplest form of decision control statement that is frequently use in decision making . It execute statement or set of statements when the logical condition is true the statement of if block are executed otherwise these statements will we skipped and the execution will jump to next statement. Syntex: if(condition) statement; If else statement In the if else statement, first the test expression is evaluated.If the expression is true, statement block 1 is executed and statement block ...

Computer generation

Image
                Computer Generation 1st generation The period of 1st generation was 1942-1954. The main features are- *Vaccum tube technology *Unreliable *Supported Machine Language Only *Very Costly *Generate lot of heat *Need A.C *Non Portable *Consumed lot of Electricity 2nd Generation The period of second generation was 1952-1964. The main features are- *Use of transistor *Reliable as compared to first generation computer *Smaller size as compared to first generation *Consumed less electricity *Faster than first generation *Still very Costly *Support machine and assembly language *A.C needed   3rd generation The period of third generation was1964-1972. *The main features are- *Use of integrated circuit *More reliable *Smaller size *Generate less heat *Faster *Still costly *A.C needed *Consumed lesser electricity 4th generation The period of fourth generation was 1972-1990. The...