Information of c/c++

 C/C++

C is a general-purpose programming language, initially developed by Dennis Ritchie between 1969 and 1973 at Bell Labs. Its design provides constructs that map efficiently to typical machine instructions. C is one of the most widely used programming language and there are very few computer architectures for which a C compiler does not exist.






Features

• C has facilities for structured programming and permits lexical variable scope and recursion.

• All practicable code is contained inside subroutines, known as "functions."

• programmed supply text is free-format, using the semicolon as an announcement exterminator and       happy braces for grouping blocks of statements.

• typewriting is static, however weak enforced: all information has a type, however implicit conversions  may be performed; as an example, characters may be used as integers.

• complicated practicality like I/O, string manipulation, and mathematical functions area unit easy to   implement with library routines.

The language began as enhancements to C, first adding categories, then virtual functions, operator   overloading, multiple inheritances, templates, and exception handling among other options.

• Classes: By using classes, we can create user defined data types. A class is the collection of a set of   data and code. An object is the instance of a class.

• Inheritance: Allows one data type to acquire properties of other data types. This provides the idea of reusability, the new features to an existing class without at means we can add new features to an existing class without modifying it.

• Data Abstraction and Encapsulation: Encapsulation means hiding data from the data structures. Here, the data is accessible to only the functions that are allowed to access it. Abstraction means representing essential features without including background details.

• Polymorphism: means one interface can be used for multiple implementations, so that object can behave differently for each implementation.

• Dynamic Binding: At runtime, the code matching the object under the current reference will be called.



About

• C++ is a statically typed, free-form, compiled, general-purpose programming language. It was developed by Bjarne Stroustrup starting in 1979, at Bell Labs.

• It adds object-oriented features such as classes, and other enhancements to the C programming language.

• C++ is additionally one in all the foremost fashionable programming languages and may be implemented on most hardware and OS platforms.

• As AN economical compiler to native code, its application domains include:

• computer program

• Application software package

• Device drivers

• Embedded software package

• superior server and shopper applications

• recreation software package like video games



C and C++ advantages

• Powerful and flexible: C/C++ are used for developing operating systems, compilers, parsers, interpreters, word processors, search engines and graphic programs.

 • Support: C requires less runtime support • Portable programming language: A variety of C/ C++ program written for one computer system can be compiled and run on another system, with little or no change.

• Modular: Written in routines called functions and classes (C++), programs can be used in other applications or programs.

• Preferred by professional programmers: A variety of C/C++ resources and helpful supports are widely available.

• Standardized: Many standards have been documented, maintained and updated for C and C++ as standard references.




Popular posts from this blog

30 amazing facts of Mukesh Ambani

mother's day 2021 | 9 may 2021 | happy mother's day, status and quotes

35 highest earning films of all time