linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* const int f() and int f() const
@ 2006-03-19 15:18 Shriramana Sharma
  2006-03-19 16:54 ` ab
  2006-03-19 17:45 ` Steve Graegert
  0 siblings, 2 replies; 7+ messages in thread
From: Shriramana Sharma @ 2006-03-19 15:18 UTC (permalink / raw)
  To: Linux C Programming List

Suppose there is a function f() which returns an integer and does not change 
any value of the class it belongs to, should I declare it as:

const int f();

or 

int f() const;

What is the difference? Thank you.

-- 

Tux #395953 resides at http://samvit.org
playing with KDE 3.51 on SUSE Linux 10.0
$ date [] CCE +2006-03-19 W11-7 UTC+0530

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-03-22 22:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-19 15:18 const int f() and int f() const Shriramana Sharma
2006-03-19 16:54 ` ab
2006-03-19 17:30   ` Robert P. J. Day
2006-03-19 17:45 ` Steve Graegert
2006-03-19 23:59   ` Shriramana Sharma
2006-03-20 13:01     ` Glynn Clements
2006-03-22 22:44   ` Benjamin Sobotta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).