what is available in C language but not in C++?

Answers were Sorted based on User's Feedback



what is available in C language but not in C++?..

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

what is available in C language but not in C++?..

Answer / chandrasekhar

c progrm donein top to bottom apparoch but c++bottom to top
apparoch

Is This Answer Correct ?    18 Yes 1 No

what is available in C language but not in C++?..

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

what is available in C language but not in C++?..

Answer / hussain reddy

malloc calloc realloc and free in c but not in c++

Is This Answer Correct ?    7 Yes 4 No

what is available in C language but not in C++?..

Answer / amit soni

c is a structured language but c++ is object orientd.

Is This Answer Correct ?    4 Yes 2 No

what is available in C language but not in C++?..

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

what is available in C language but not in C++?..

Answer / jibin jose

type conversion in c : (Datatype)value
type conversion in c++ : int(Datatype)

Is This Answer Correct ?    1 Yes 2 No

what is available in C language but not in C++?..

Answer / faheem

in c default return type is void but in c++ it is int.

Is This Answer Correct ?    2 Yes 7 No

what is available in C language but not in C++?..

Answer / akash

c secures more privacy than c++

Is This Answer Correct ?    0 Yes 6 No

what is available in C language but not in C++?..

Answer / sara

pointers r available in c which is not available in c++

Is This Answer Correct ?    8 Yes 44 No

Post New Answer

More C Interview Questions

What are derived data types in c?

0 Answers  


plz answer.. a program that takes a string e.g. "345" and returns integer 345

4 Answers  


why we shiuld use main keyword in C

5 Answers  


Describe the header file and its usage in c programming?

0 Answers  


how do you redirect stdout value from a program to a file?

1 Answers  


write C code to reverse a string such that if i/p is "abc defg hij klmno pqrs tuv wxyz" and the o/p should be "cba gfed jih onmlk srqp vut zyxw"

2 Answers  


#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif }

1 Answers   Vector India,


Discuss the function of conditional operator, size of operator and comma operator with examples.

0 Answers   TCS,


what is the function of void main()?

8 Answers  


to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?

0 Answers  


diff .between strcture and union

2 Answers  


. Consider the following program main() { int a[5]={1,3,6,7,0}; int *b; b=&a[2]; } The value of b[-1] is (A) 1 (B) 3 (C) -6 (D) none

9 Answers   Oracle,


Categories