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
How did c++ start?
Describe the advantages of operator overloading?
Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?
How do you sort a sort function in c++ to sort in descending order?
Is c++ slower than c?
Write a program using display() function which takes two arguments.
What are the advantages of c++? Explain
What does the nocreate and noreplace flag ensure when they are used for opening a file?
How to declare an array of pointers to integer?
Should the this pointer can be used in the constructor?
What is difference between c++ and c ++ 14?
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?
Write about the scope resolution operator?
What relational operators if statements in c++?
Discussion on error handling of C++ .