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 |
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
Is c still used in 2019?
What is the use of the restrict keyword?
Why is c called a mid-level programming language?
c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above
Is there any possibility to create customized header file with c programming language?
how can we use static and extern?and where can we use this?
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
how to print a statement in c without use of console statement ,with the help of if statement it should print
what are advantages of U D F?