Ask Question, Ask an Expert


Ask C/C++ Expert

Home >> C/C++


C program begins inside the function that is called main function. Function is simply a collection of the commands that do something. The main function is all the time called when a program first executes. From main we can call the other functions whether they are written by us and by others or use built-in the language features. To access standard functions that comes with the compiler, you need to include the header with #include directive.

C++ is a programming language it will allow to control the computer making it do what you want it to do.  This collection of the commands is usually called C++ source code source code and presently code. Commands are both functions and keywords. Keywords are basic building block of language, while functions are in fact usually written in the terms of simpler functions.

C++ is the general purpose of programming language. It has to imperative object-oriented and generic programming features while also providing facilities for the low level memory manipulation. It is designed with the bias for systems programming, with the performance, efficiency and the flexibility of use as its design requirements. C++ has also been found valuable in several other contexts, including the desktop applications, performance critical applications, servers, and entertainment software, such as the video games.

It is the compiled language, with the implementations of it available on several platforms. A range of organizations provide them including FSF, LLVM, Microsoft and the Intel.

A Brief History of C, C++:

C programming language was developed at Bell Labs during early 1970's. The Quite unpredictably it derived from the computer language named B and from earlier the language BCPL. The Initially designed as system programming language under the UNIX it expanded to have the wide usage on several different systems. Earlier versions of the C became known as K&R C after authors of an earlier book, The C Programming Language by the Kernighan and Ritchie. As the language further developed and the standardized, a version knows as ANSI C became leading.

Bjarne Stroustrup at the Bell Labs initially developed by C++ during early 1980's. It was designed to the support of features of the C such as competence and the low-level support for the system level coding. Added to this were the features such as the classes with inheritance and the virtual functions derived from the Simula67 language, and the operator overloading, derived from Algol68.

Differences between C and C++

The languages share common syntax they are so different in nature. C is the procedural language. When approaching the programming challenge the general method of the solution is to break the task into consecutively smaller subtasks. This is known as the top-down design. C++ is object-oriented language. To solve the problem with C++ the first step is to design classes that are the abstractions of physical objects. These classes contain both states of the object, and the capabilities of object, its methods. After the classes are intended, a program is the written that uses these classes to explain the task at hand.

Advantages of C and C++

1. The Powerful and flexible language - What can be achieved is only limited by the imagination.  It is used for the Operating System, parsers, compilers, interpreters, search the engine word processors and the graphic programs.

2. The Portable programming language - C program written for one computer system that can be compiled and run on the another system.

3. Is the language of less keyword - The Handful of terms that called keywords in which language's functionality is built.

4. Modular - Written in the routines called functions and classes, can be reused in the other applications and programs.

5. Standardized - Many standards have been maintained, documented, and updated for the C and C++ as standard references for solving portability and the many other issues.

C++ is Object Oriented Programming:

C++ provides number of the features that spruce up C language mainly in the object-oriented programming aspects and data type security.  Though if you have to study the C++, you will find that type security of the C++ also not so safe, actually the secure codes are depend on the programmers themselves. Object are basically reusable software components that the model items in the real world. Using a object-oriented design, modular, and implementation, can speed up program development and make same software development group and up to many times more productive than conventional programming techniques.

Objects of the C.C++:

There are many objects of programming;

a. Encapsulation,

b. Inheritance.

Fundamental of data types:

The Fundamental data types are basic types of implemented directly by language that represents basic storage units supported natively by the most systems. They can be mostly classified into:

1. Character types: They can be represent a single character such as A or $. The most basic type is the char, which is one-byte character.

2. Numerical integer types: They can store the whole number value such as the 7 or 1024. They exist in the variety of the sizes, and can either be signed and unsigned, depending on the whether they support negative values or not.

3. Floating-point types: They can represent real values, such as 3.14 or 0.01, with different levels of the precision, depending on which of three floating point that types is used.

4. Boolean type:  Boolean type, known in the C++ as bool can only represent one of the two states that is  true or false.

Looking for C/C++ Programming expert? Hire experts for C Programming question's answers

Are you looking for expert's assistance for your C/C++ Programming? Finding answers for your C Programming problems? Hire today online C/C++ Programming expert and start finding your answers. Mywordsolution offers you valuble service delivery in solving your problems and questions through expert's assistance. You will get quality service delivery by qualified and experienced subject or category experts within short time span


Recent C/C++ Questions

Write a program to draw a symmetric shape of your own using

Write a program to draw a symmetric shape of your own using C++ user-defined functions and arrays. The program should draw a shape in its original and opposite forms (black and white and then white and black). Please con ...

Write a console-based c program that can be used as a math

Write a console-based C++ program that can be used as a math tutor for a young student. The program should display two random numbers consisting of three digits each to be added in columnar format, such as: 247 +129 ---- ...

Bankers algorithmimplement the bankers algorithm for

Banker's Algorithm Implement the Banker's algorithm for deadlock avoidance, that works on a given set of N processes and M resource types (N The input data and result is then displayed on the screen. You may use your pro ...

Transaction processing system tpsxyz electronics is one of

Transaction Processing System (TPS) XYZ Electronics is one of the most popular electronics companies In Sultanate of Oman the company offers affordable electronic gadgets such as mp3 players, portable movie players, mobi ...

Discussionkeyboard versus file input please respond to the

Discussion "Keyboard versus File Input" Please respond to the following: • Suppose you are designing a C++ application that needs to capture user input specifically via a keyboard or from a file. Determine the method tha ...

Programming cc assignmentsyoull need to download this to

Programming C/C++ assignments You'll need to download this To write the program. The programs will be written using the Microsoft Visual C++ Express Edition IDE (Integrated Development Environment), which can be download ...

Assignmentbullwrite the code for each lab

Assignment • Write the code for each lab assignment. • Submit the lab in a single zip file in the online course shell. The lab must contain all .cpp files, along with any additional files that may be necessary for your p ...

Assignmentthis is the programthis program will use 2

Assignment This is the program: This program will use 2 different data structures to perform the same tasks; a vector and a dynamically sized array Write a complete C++ program that will: Declare a vector of integers wit ...

1 we know that from ece 109 to calculate the

1. We know that from ECE 109, to calculate the equivalent resistance of a network of resistors in series in parallel are given by: Write a C++ program that asks the user to input values for resistors (as many as they wou ...

Write a c program that requests the name of any cartoon

Write a C program that requests the name of any cartoon character from the user, then does the following with that name (use printf for each): a. Displays it enclosed in double quotes. b. Displays it in a field 24 charac ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

WalMart Identification of theory and critical discussion

Drawing on the prescribed text and/or relevant academic literature, produce a paper which discusses the nature of group

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro