Write any small program that will compile in "C" but not
in "C++"
Answer Posted / uma sankar pradhan
xyz()
{
printf("very good");
}
the above code will compile in 'c'
but in 'c++' it will give compilation error
Is This Answer Correct ? | 5 Yes | 6 No |
Post New Answer View All Answers
When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?
What do you mean by function overriding & function overloading in c++?
What is a singleton c++?
Is map thread safe c++?
how to connect with oracle 9i with server in socket program in c/c++
Can the creation of operator** is allowed to perform the to-the-power-of operations?
What do you mean by translation unit?
A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
What is the main purpose of overloading operators?
Write a Program to find the largest of 4 no using macros.
How are the features of c++ different from c?
Will c++ be replaced?
Explain deep copy?
What does return 0 do in c++?
Define a nested class. Explain how it can be useful.