@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)

-- 
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