How to know which versions we are using c, c++ in Solaris.

How to know which versions we are using c, c++ in Solaris.

Thanks & Regards
Durgaprasad

$ cc -V
cc: Sun C 5.9 SunOS_i386 2007/11/15
usage: cc [ options] files.  Use 'cc -flags' for details
$ CC -V
CC: Sun C++ 5.9 SunOS_i386 2007/11/15
$ gcc --version
gcc (GCC) 3.4.3 (csl-sol210-3_4-20050802)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.