English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i saw many examples which just liked const void f2(int x),never void f2(int x) const.
thank you for your suggestion.
best regards.

2006-10-24 02:25:42 · 3 answers · asked by samurai 1 in Computers & Internet Programming & Design

3 answers

When const is put before void f2(int x) it means that the function is a constant function and when it is after the void f2(int x), it means that the memory space addressed to the function is constant and holds constant values.

2006-10-24 21:39:35 · answer #1 · answered by Rahul Ghose 4 · 0 0

The const keyword is used to create a read only variable. Once initialised, the value of the variable cannot be changed but can be used just like any other variable.


http://www.phim.unibe.ch/comp_doc/c_manual/C/SYNTAX/const.html

2006-10-24 09:31:07 · answer #2 · answered by Inuchan 3 · 0 0

could you please eloborate your question a lil bit more .

2006-10-24 14:17:34 · answer #3 · answered by indianYogi 2 · 0 0

fedest.com, questions and answers