what is available in C language but not in C++?
Answers were Sorted based on User's Feedback
Answer / mukhtar
In c u can create variable with name new and delete but not
in c++.
Is This Answer Correct ? | 40 Yes | 22 No |
Answer / chandrasekhar
c progrm donein top to bottom apparoch but c++bottom to top
apparoch
Is This Answer Correct ? | 18 Yes | 1 No |
Answer / preeti singh
C allows a void* pointer to be assigned to any pointer type
without a cast, whereas C++ does not.
void* ptr;
int *i = ptr;
int *j = malloc(sizeof(int) * 5);
this is valid in C but not in C++.
In C++ explicit cast needs to be applied as given below.
void* ptr;
int *i = (int *) ptr;
int *j = (int *) malloc(sizeof(int) * 5);
Is This Answer Correct ? | 13 Yes | 1 No |
Answer / hussain reddy
malloc calloc realloc and free in c but not in c++
Is This Answer Correct ? | 7 Yes | 4 No |
Answer / amit soni
c is a structured language but c++ is object orientd.
Is This Answer Correct ? | 4 Yes | 2 No |
Answer / fynny
c supports register level programing, but c++ doesnot and
hence C is used in developing the operating system.....BY FYNNY
Is This Answer Correct ? | 2 Yes | 2 No |
Answer / jibin jose
type conversion in c : (Datatype)value
type conversion in c++ : int(Datatype)
Is This Answer Correct ? | 1 Yes | 2 No |
Answer / faheem
in c default return type is void but in c++ it is int.
Is This Answer Correct ? | 2 Yes | 7 No |
Answer / sara
pointers r available in c which is not available in c++
Is This Answer Correct ? | 8 Yes | 44 No |
write a program to print the all 4digits numbers & whose squares must me even numbers?
marge linklist
There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side? Upload a C program to demonstrate the behaviour of the game.
write a program to display & create a rational number
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
how to connect oracle in C/C++.
What is the output of following program ? int main() { int x = 5; printf("%d %d %d\n", x, x << 2, x >> 2); }
How do you view the path?
What is void c?
Define circular linked list.
What is struct node in c?
Why c is faster than c++?