Wednesday, October 13, 2010

Graphics in C Language Tutorial

,
C and C++ Very Useful Language for Creating Application and programs. It provide a platform for developing a application with many functionality. But we know that mostly users attract Interface design. Design of application gives easy to use for users, he can user any application easily by UI. All programmings language can easily implement with graphic eg: C,C++,PHP,.net etc. Here we are learning about Graphic in C language with example, graphics.h library...
Read more →

What is Call By Value in C

,
In C Programmings we have different ways to parameter passing schemes such as Call by Value and Call by Reference. Call By Value:- In the Call By Value the function is to be called by passing the value in the parameter of a function called. By default, C programming language uses call by value method to pass arguments. There are the two type of a arguments which are passed in the function. 1) Formal Arguments:- Formal Arguments is the parameters which...
Read more →

What is Call By Reference in C

,
In C Programmings we have different ways to parameter passing schemes such as Call by Value and Call by Reference. Call by Reference:- Reference means the address not the actual value, the address of a variable or anything. So in the call by reference we use the address of a variable instead of passing the value of a variable in the function. When we want to use address we have to use the concept of pointer because pointers have the capability to store...
Read more →

How to Use Union in C Programming

,
Union is a derived datatypes which group together a number of variable . Union is like a structure in c language which used to store one of a set of different types. A union holds the value of one-variable at a time. C Programming provide this facility which help to share same memory with different different variables. Accessing members of a union is via “.” member operator or, for pointers to unions, the -> operator. union syntax in c : union...
Read more →

C Storage Classes With Examples

,
Storage Class refers to the persistence of a variable (life time) and its scope within the program, that is, the portion of the program over which the variable is recognized. The following types of storage-class specifications in C Language. global automatic or local static extern The visibility of a variable determines how much of the rest of the program can access that variable. You can arrange that a variable is visible only within one part of...
Read more →

Static Function in C Language

,
By default any function that is defined in a C file is extern, which means they're visible across translation units. But when we use “static” keyword it restricts visibility of the function to the translation unit in which it's defined. static int sfun(void) {   printf("I am a static function "); } when we want to restrict access to functions, we make them static. Static functions are functions that are only visible to functions in the same file...
Read more →

Type Casting in C Language

,
Type casting is a way to convert a variable from one data type to another data type. Type Casting is force to convert one data type to another data type. The process of such local conversion is known as casting a value. The general form of cast is: (type-name) expression where type-name is one of the standard C data types. Consider, for example, the calculation of salary of employee to engineers in a town. salary = amount / days Since amount and days...
Read more →

What is Loops in C and C Plus Plus Programmings

,
Introduction Loops in simple languages it's process of round (circle) of a work or activity. C and C Plus Plus also provide this function in c  and c plus plus. It provide a function which repeat your code in a block. It itterate you code and execute until work when condition will not be false. Types of Loops 1. While Loop 2. Do While Loop 3. For Loop While Loop:- While Loop is another type of loop which very useful for C Programmings.  In this loop in case we are using increament or decrement with condition. then atleast one time increament or decrement...
Read more →

Data Types in C Language With Size

,
C has a concept of 'data types' which are used to define a variable before its use. C compilers support four fundamental data types, namely integer (int), character (char), floating point (float), and double-precision floating point (double). Like integer data type, other data types also offer extended data types such as long double and signed char. Data Type Data Type of a variable tell to the compiler Name of variable Which type of value that variable...
Read more →

File Handling in C Language

,
File handling means one can perform operations like create, modify, delete etc on system files. You want to read from or write to one of the files you're working with, you identify that file by using its file pointer. File Handling Funtions : fopen() : The fopen() function is used to open a file and associates an I/O stream with it. The mode string "r" indicates reading. Mode "w" indicates writing, so we could open. The third major mode is "a" for append....
Read more →

String In C Language

,
The string in C programming language are represented by arrays of characters. The end of the string is marked with a special character, the null character, which is simply the character with the value 0. Whenever we write a string, enclosed in double quotes, C automatically creates an array of characters for us, containing that string, terminated by the \0 character. For example, we can declare and define an array of characters, and initialize it with...
Read more →

How structures are to be used in c

,
...
Read more →

Thursday, October 7, 2010

What is Inheritance?

,
What is Inheritance? Inheritance is one of the important feature of the OOP.Inheritance is the method by which objects of one class gets the properties of another class. Advantages of Inheritance? Sometimes we need to repeat the code or we need repeat the whole class properties. So It helps in various ways. 1.) It saves memory space. 2.) It saves time. 3.) It will remove frustration. 4.) It increases reliability of the code 5.) It saves the developing and testing efforts. Why we use Inheritance? To increase the reusability of the code and to make further usable for another classes....
Read more →