@Saurabh, Sorry buddy, I was trying with g++ compiler, i just tried with gcc
and its throwing an error 'error: initializer element is not constant'.

I apologise for the mistake.

Thanks,
Mani
On Fri, Mar 18, 2011 at 11:38 AM, saurabh singh <[email protected]> wrote:

>
> @Manikanta Babu.
> Dont say you were using dev C++ or turbo c++....You must be knowing that if
> you dont specify these compilers will compile the code in c++ format.Try
> this in gcc which is the standard compiler for c and if you dont get any
> error then report.ITS COMPLETELY ILLEGAL TO INITIALIZE A VARIABLE WITH ANY
> THING OTHER THAN A CONSTANT.
> printf returns int and not const int.its fine in c++ to do so but not in
> c...........Please if you are reporting anything about c,Try it first on a
> gcc compiler with c std.(default option in gcc)
>



-- 
Thanks & Regards,
Mani
http://www.sanidapa.com - The music Search engine

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to