Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Differences of C and C++
Could you write a small program that will compile in “C” but not in “C++”?
Differences of C and C++
Could you write a small program that will compile in “C” but not in “C++”?
✍: .fyicenter.com
In C, if you can a const variable e.g.
const int i = 2;
you can use this variable in other module as follows
extern const int i;
C compiler will not complain.
But for C++ compiler u must write
extern const int i = 2;
else error would be generated.
2012-04-03, 3078👍, 0💬
Popular Posts:
What Is URI? URI (Uniform Resource Identifier) is a superset of URL. URI provides a simple and exten...
How To Concatenate Two Character Strings? - MySQL FAQs - Introduction to SQL Basics If you want conc...
How To Enter Microseconds in SQL Statements? - MySQL FAQs - Introduction to SQL Date and Time Handli...
What is Service Oriented architecture? “Services” are components which expose well defined interface...
What will be printed as the result of the operation below: main() { int x=20,y=35; x=y++ + x++; y= +...