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, 2984👍, 0💬
Popular Posts:
How Many Tags Are Defined in HTML 4.01? There are 77 tags defined in HTML 4.01: a abbr acronym addre...
What Is Posting? Posting is an event that writes Inserts, Updates and Deletes in the forms to the da...
What is difference between Association, Aggregation and Inheritance relationships? In object oriente...
What is the difference between mysql_fetch_object() and mysql_fetch_array() functions in PHP? mysql_...
How do I force the Dispose method to be called automatically, as clients can forget to call Dispose ...