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 |
int main() { unsigned char a = 0; do { printf("%d=%c\n",a,a); a++; }while(a!=0); return 0; } can anyone please explain me output????
Difference between Function to pointer and pointer to function
What is use of null pointer in c?
we have to use realloc only after malloc or calloc ? or we can use initially with out depending on whether we are using malloc or calloc in our program ?
WHAT IS MAXIMUM SIZE OF AN ARRAY IN C LANGUAGE?
8 Answers Carphone Warehouse, IBM, SAS,
What is the basic structure of c?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
Write a program to find the given number is odd or even without using any loops(if,for,do,while)
how the size of an integer is decided? - is it based on processor or compiler or OS?
19 Answers HCL, JPR, Microsoft, nvidia,
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
for(i=0;i=printf("Hello");i++); printf("Hello"); how many times how will be printed?????????
What is preprocessor with example?