Programming Tools

where students meet to knowledge

Month

August 2016

Inheritance

Inheritance is the process by which one object can acquire the properties of another object. This is important because it supports the concept of classification. If you think about it, most knowledge is made manageable by hierarchical classifications. For example,… Continue Reading →

Polymorphism

Poly means many and Morphing means Formations. Polymorphism means the ability to take many forms. For instance, an operator may exhibit different behavior in different situations. In OOP, Polymorphism plays an important role in allowing objects having different internal structure… Continue Reading →

Encapsulation

Encapsulation is the mechanism that binds together code and the data it manipulates, and keeps both safe from outside interference and misuse. In an object-oriented language, code and data may be combined in such a way that they represent a… Continue Reading →

Abstraction

Abstraction is hiding complexity of system from the user. Concept of abstraction relates to the idea of hiding data that are not essential. Data abstraction is a programming (and design) technique that relies on the separation of interface and implementation…. Continue Reading →

Obeject-oriented programming

In the most general sense, a program can be organized in one of two ways: around its code (what is happening) or around its data (who is being affected). Using only structured programming techniques, programs are typically organized around code…. Continue Reading →

Structure of c++ program

Hello World! #include <iostream> using namespace std; int main () { cout << “Hello World!”; return 0; }

Constants

C Constants are also like normal variables. But, only difference is, their values can not be modified by the program once they are defined. Constants refer to fixed values. They are also called as literals Constants may be belonging to any of… Continue Reading →

Data types

DataTypes are used for declaring variables And functions of different types. When Program store data in variables, It is necessary that each variable must be assigned a specific data type.

Keywords

Keywords are reserved words which have standard, predefined meaning in C. They cannot be used as program-defined identifiers *Generally all keywords are in lower case although uppercase of same names can be used as identifiers. List of C keywords are… Continue Reading →

Rules to define variables

Characters allowed : Underscore(_), Capital Letters ( A – Z ), Small Letters ( a – z ), and Digits ( 0 – 9 ). Blank spaces and commas are not allowed. No Special Symbols other than underscore(_) are allowed…. Continue Reading →

Variables

Variable in C Programming is called as container to store the data. Variable name may have different data types to identify the type of value stored. Suppose we declare variable of type integer then it can store only integer values…. Continue Reading →

Check number is Prime or not

#include<stdio.h> main() {   int n,c=2;   printf(“enter a number\n”);   scanf(“%d”,&n);   for(c=2;c<=n-1;c++)   {      if(n%c==0)     {       printf(“%d is not a prime\n”,n);       break;       }    }   if(c==n)     printf(“%d is a prime\n”,n);   return 0; } OUTPUT… Continue Reading →

© 2017 Programming Tools — acadinetech.com