Difference between revisions of "C and Cpp"
Line 9: | Line 9: | ||
__TOC__ | __TOC__ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Revision as of 11:14, 25 April 2013
Introduction to C
Powerful features, simple syntax, and portability make C a preferred language among programmers for business and industrial applications.Portability means that C programs written for a computer with a particular kind of processor, say Intel, can be executed on computers with different processors such as Motorola, Sun Sparc, or IBM with little or no modification.C language is widely used in the development of operating systems.
An Operating System(OS) is a software(collection of programs) that controls the various functions of a computer. Also it makes other programs on your computer work.
For example, you cannot work with a word processor program, such as Microsoft Word, if there is no operating system installed on your computer.Windows, Unix, Linux, Solaris, and MacOS are some of the popular operating systems.
Dennis M. Ritchie, a systems engineer at Bell Laboratories, New Jersey developed C in the early 1970’salthough designed for the Unix operating system, it soon proved itself a powerful, general purpose programming language.
11) Logical Operators in C and C++
-And &&
-Or ||
-Not !
-Errors
12) Loops in C and C++
-Loops
-Syntax for while and do-while loop
-Comparison of while and do-while loop
-Syntax for
-for loop
-Errors
Intermediate level
13) Arrays in C and C++
-What are arrays
-1-D Arrays
-Syntax for Declaration of arrays
--example: data type array_name [size];
-Syntax for Initialization of arrays
--example: data type array_name [size]=value;
-Accepting values from the user
-Errors
14) Working with 2-D Arrays in C and C++
-What are 2-D Arrays.
-Range of arrays
-Syntax for Declaration of 2-D arrays
--example: data type array_name[row][column];
-Syntax for initialization of 2-D arrays
--example: data type array_name[row][column]=
{
{row-val},{col-val}
};
-Errors
15) Strings in C and C++
-What is a string
-Syntax for declaring a string
-Syntax for initializing a string
-To read a string from keyboard
-Errors
16) String Library Functions in C and C++
-What are string library functions.
-Types of string library functions
-Strcpy
-Strlen
-Strcmp
-Strcat
-Errors
17) Working with Structures in C and C++
-Introduction
-Syntax of structures
-Declaration and initialization
-Declaration of structure variable
-Accessing structure variables
18) Understanding Pointers in C and C++
-Introduction
-Syntax of Pointer
--example: int *iptr;
-Declaration
--example: int a;
(integer a)
int *aptr;
(pointer to an integer *aptr)
aptr = &a;
(aptr set to address of a)
Address Pointer
-Errors
19) Function pass by value and pass by reference
-types of function calls
-function pass by value
-function pass by reference
20) Files in C
-File handling functions
-Opening a File closing a file
--example: fopen, fclose
-Reading data from a File
Advanced level
21) Classes and Objects in C++
-Defining Classes
-create a class
-Defining Objects
-create an object of the class
-Member Functions
-To create a function
-Encapsulation
-Data Abstraction
22) Constructor and Destructor
-Constructor and Destructor
-To create a constructor
-Parameterized constructors
-Default constructor
-Destructor
23) static members in C++
-Static Keyword
-Static variable
-Static member function
24) Inheritance
-Inheritance
-Concept of subclass and superclass
-Types of inheritance
-single level inheritance
-Multilevel inheritance
25) Multiple and Hierarchical Inheritance
-Multuple Inheritance
-Hierarchical Inheritnace26) Function Overloading and Overriding-function overloading
-function overriding
-difference between both
27) Polymorphism in C++
-Polymorphism
-Virtual Members
-Virtual Function
28) Abstract class in C++
-Pure virtual function-abstract class
-abstract methods
29) Friend Function
-friend function
30) Exception Handling
-Exceptions
-try
-throw
-catch
Contributors and Content Editors
Ashwini, Kaushik Datta, Minal, Nancyvarkey, PoojaMoolya, Pratik kamble, Snehalathak