Is there something that we can do in C and not in C++?

Answer Posted / bhushan bastwade

We can have variable names as class,new,operator in C but not in C++ as they are keywords in C++.
For more have a look on this
http://www.geeksforgeeks.org/write-c-program-wont-compiler-c/

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which software is best for coding?

784


What is the use of structure in c++?

746


Evaluate !(1&&1||1&&0) a) Error b) False c) True

935


Why do we use classes in c++?

796


Write a Program for find and replace a character in a string.

783


What is lvalue?

906


Define a pointer to a data member of the type pointer to pointer?

752


What is cin clear () in c++?

839


What is the use of cmath in c++?

784


what Is DCS ? what i will get benefit when i did?

2033


Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02

1699


What is setfill c++?

884


Are strings mutable in c++?

886


why is iostream::eof inside a loop condition considered wrong?

812


How does c++ sort work?

750