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 |
What is the difference between char a[] = "string"; and char *p = "string"; ?
14 Answers Adobe, Honeywell, TCS,
What are data breakpoints?
int x=sizeof(!5.856); What will value of variable x?
How can I read in an object file and jump to locations in it?
Do you know the use of 'auto' keyword?
1 232 34543 4567654 can anyone tell me how to slove this c question
how to convert an char array to decimal array
Are local variables initialized to zero by default in c?
Who is the founder of c language?
how to write a prog in c to convert decimal number into binary by using recursen function,
Write a C program to convert an integer into a binary string?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL