English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

3 answers

Probably not one. Sometimes, embedded systems use C over C++ but they can be written using both.

2006-07-20 06:04:32 · answer #1 · answered by beeweev 3 · 0 0

hai *

Constructs valid in C but not C++
One commonly encountered differences is that C allows a void* pointer to be assigned to any pointer type without a cast, whereas C++ does not; this idiom appears often in C code using malloc memory allocation. For example, the following is valid in C but not C++:

void* ptr;
int *i = ptr; /* Implicit conversion from void* to int* */
or similarly:

int *j = malloc(sizeof(int) * 5); /* Implicit conversion from void* to int* */
good luck

2006-07-20 04:02:20 · answer #2 · answered by dewman_byju 4 · 1 0

I can't think of any because C++ contains everything C does plus more.

2006-07-20 03:56:25 · answer #3 · answered by Larry 6 · 0 0

fedest.com, questions and answers