Is there something we can do in C but not in C++?
Declare variable names that are keywords in C++ but not C.
Answers were Sorted based on User's Feedback
Answer / ruth
Aside from a few minor differences, there's nothing C can
do that C++ can't. About the only things I can think of are:
int foo = Something();
int array[ foo ]; // C++ can't do this, but C can IIRC
Of course C++ provides alternatives to do the same thing:
vector<int> array(foo); // similar code in C++
C is more friendy for making external libraries. A DLL
compiled in C will likely work in any C/C++ program made in
any other C/C++ compiler. Whereas DLLs made with C++ often
only work in C++ programs made in the same C++ compiler
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / lucky
#include<stdio.h>
#include<conio.h>
void main()
{
int class=0;
printf("5d",class);
getch();
}
| Is This Answer Correct ? | 6 Yes | 3 No |
Is void a keyword in c?
What are reserved words?
Explain zero based addressing.
How to swap two values using a single variable ? condition: Not to use Array and Pointer ?
When do you say that a digraph is acyclic A)if and only if its first search does not have back arcs B)a digraph is acyclic if and only if its first search does not have back vertices C)if and only if its first search does not have same dfnumber D)None of these
What is enumerated data type in c?
can we have joblib in a proc ?
What extern c means?
Why is malloc used?
how to set Nth bit of a variable?
How to add two numbers without using arithmetic operators?
18 Answers College School Exams Tests, e track, Infosys, Pan Parag, Sapient, TCS,
ABCDCBA ABC CBA AB BA A A