answersLogoWhite

0


Best Answer

== Yes. It may be funny. You cannot use keywords like newin c++ for variable declaration. But in C it is possible.

== The following definition is valid in C, invalid in C++: char str [3] = "ABC";

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

Basic difeerence is that C is procedure oriented programming language while C++ is Object Oriented Programming Language.

However all the concepts in c are available in c++.

All c programs can be compiled by using the c++ compiler but a c compiler cannot compile a c++ program.

In c++ some additional concepts were added beyond the c.

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

No. C++ is backwardly compatible with C thus every C program is also a valid C++ program. Some modification may be required in order to render the code fully C++ compliant (such as ensuring all functions are forward declared and that the main function returns an int), however preprocessor directives can be used to mark code that is specifically written in C and should be compiled as such.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

C++ is a general purpose, cross-platform, object-oriented, high-level programming language. Virtually every operating system has one or more implementations of the language that will allow you to write programs specifically for that operating system. Although the standard language is designed to be portable, operating system code is not portable. However, you can write code that will filter operating system specific code to suit the current compiler, provided you have access to the appropriate operating system headers and libraries which are usually provided by the compiler as part of an Integrated Development Environment.

The types of programs you can create are limited only by your imagination. And while it may not be the best language for every type of program, it's certainly the best language for the majority of programming, capable of producing highly efficient native machine code. Although Java, another object-oriented language, is a good deal more portable than C++, Java compiles to byte code suitable for interpretation by the Java virtual machine and therefore doesn't perform well compared to C++ implementations of the same code.

Programs produced with C++ are generally robust and highly-scalable, although that aspect is largely dictated by good design. The language merely provides the tools, it's up to you how you use them. And since C++ is derived from C, you get all the advantages of C, including direct access to the underlying architecture and memory pointers, as well as the ability to incorporate low-level procedural code, such as native assembler routines.

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

No, because C++ is based on C. Thus, it can do everything what C can do.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

For example:

int new; /* 'new' is a keyword in C++ */

char str[3] = "ABC"; /* Won't work in C++ */

void *p; char *s= p; /* requires explicit typecast */

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is there any program that can run c but not in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is debugging in c plus plus?

Debugging is a way of running the program to locate any errors that may arise at run-time.


Lint is a compiler b a interactive debugger c a cinterpreter d a tool for analysing c plus plus program?

d a tool for analysing c plus plus program


Is it true that a c plus plus program is similar to a c program except for the details of coding?

No. A C++ program is not even remotely similar to a C program. While it is true that with little to no modification any valid C program can become a valid C++ program, the resultant code would still be C or at least the C-style equivalent that is supported by C++. However, the same cannot be said in the other direction. Converting C++ code to C can obviously be done (code in any language can be converted to any other language), but it is far from trivial. Indeed, the only way it could be achieved effectively and efficiently is with a C++ to C compiler, in much the same way as the original C++ compiler worked. However it's difficult to imagine any scenario where this would be a requirement.


What is the only function all C plus plus programs must contain?

Every C plus plus program that is a main program must have the function 'main'.


Why can't my C plus plus program be run on other people's computers do I need an installer or something?

You need to find out what exactly it's missing. Usually it's a dll, which was not included in the program itself. But you have it installed on your computer.

Related questions

What is debugging in c plus plus?

Debugging is a way of running the program to locate any errors that may arise at run-time.


Is it possible to immediately run your C plus plus program without compiling it?

No.


Which Program that will run in C but not in C plus plus?

void main() { int *x = malloc(sizeof(int) * 10); }


Why does sometimes when you run a program it will execute the previous program instead the current open program in C plus plus?

Because you aren't careful enough.


Is there any benefit to a C plus plus program of round robin?

No.


Is there any purpose to the parts of a turbo c plus plus program?

Yes.


Is there any benefit in a C plus plus program to add two matrices?

No.


How do you link a C plus plus program to C functions?

It should work without any special action.


Can you program games with c plus plus?

Yes, you can program games with C++.


How can you turn a C plus plus program into a dot exe to run on a PC without a compiler?

To make C++ code into an executable program, you need a compiler. Compilation of a program doesn't have to be on the same computer as the one it's intended to be used on.


How to restart c plus plus program?

Exit the program and relaunch it.


What is the general structure of a C plus plus Language?

The central feature of any C++ program is classes which can be used to express ideas directly in code.