Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask C/C++ Expert


Home >> C/C++

INTRODUCTION OF 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

Programming,C/C++


Recent C/C++ Questions

Why do researcher drop the ewaste and where does it end

Why do researcher drop the ewaste and where does it end up?

Project - space race part a console Project - Space Race Part A: Console Implementation

Project - Space Race Part A: Console Implementation INTRODUCTION This assignment aims to give you a real problem-solving experience, similar to what you might encounter in the workplace. You have been hired to complete a ...

Assign ment - genetic algorithmin this assignment you will

ASSIGN MENT - GENETIC ALGORITHM In this assignment, you will use your C programming skills to build a simple Genetic Algorithm. DESCRIPTION OF THE PROGRAM - CORE REQUIREMENTS - REQ1: Command-line arguments The user of yo ...

1 implement the binary search tree bst in c using the node

1. Implement the Binary Search Tree (BST) in C++, using the Node class template provided below. Please read the provided helper methods in class BST, especially for deleteValue(), make sure you get a fully understanding ...

Assignment word matchingwhats a six-letter word that has an

Assignment: Word Matching What's a six-letter word that has an e as its first, third, and fifth letter? Can you find an anagram of pine grave. Or how about a word that starts and ends with ant (other than ant itself, of ...

There are several ways to calculate the pulse width of a

There are several ways to calculate the pulse width of a digital input signal. One method is to directly read the input pin and another method (more efficient) is to use a timer and pin change interrupt. Function startTi ...

What are the legal requirements with which websites must

What are the legal requirements with which websites must comply in order to meet the needs of persons with disabilities? Why is maximizing accessibility important to everyone?

Software development fundamentals assignment 1 -details amp

Software Development Fundamentals Assignment 1 - Details & Problems - In this assignment, you are required to answer the short questions, identify error in the code, give output of the code and develop three C# Console P ...

Question 1find the minimum and maximum of a list of numbers

Question: 1. Find the Minimum and Maximum of a List of Numbers: 10 points File: find_min_max.cpp Write a program that reads some number of integers from the user and finds the minimum and maximum numbers in this list. Th ...

  • 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

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As