Hi Ian, Is there any option by which we can get default c,c++ standard. Kind regards keshav On Fri, Jun 4, 2010 at 9:16 PM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote: > naveen yadav <yad.naveen@xxxxxxxxx> writes: > >> I want to know which C / C++ standard my gcc is supported, Is there >> any method to find ? > > Check the documentation which comes with your gcc. Look for the -std > option. > > >>>From below site, they say C standard is ‘gnu90’, and C++ standard is ‘gnu++98’. >> >> http://gcc.gnu.org/onlinedocs/gcc/Standards.html >> >> >> Is it applicable to all gcc versions currently available? > > It's applicable to all supported versions of gcc, but since gcc is > free software all versions are in a sense available. > > >> I try using below method >> >> [naveen@localhost ~]$ gcc -std=gnu99 test1.c -v > > Yes, that works too. If you try with an unsupported version, you will > get an error. > > Ian >