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 |
Add Two Numbers Without Using the Addition Operator
x=y=z=1 z=++x||++y&&++z Printf("%%%d";xyz) what is the values of x,y and z?????
52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to count the number of ones in a 32 bit number? 54.write a program that print itself even if the source file is deleted? 55.Given an unsigned integer, find if the number is power of 2?
Is it cc or c in a letter?
How can I direct output to the printer?
write a program to check whether a number is Peterson or not.
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
Do you know the difference between exit() and _exit() function in c?
What are pragmas and what are they good for?
Give basis knowledge of web designing ...
what is the output of the program?? #include<stdio.h> main ( ) { int a=010,sum=0,tracker: for(tracker=0;tracker<=a;tracker++) sum+=tracker; printf(“ %d\n”,sum); } what is the difference between a=10 and a=010??
c program to print a name without using semicolon