Drealmer's Tumblr

08/06/2011

C quiz (again)

Explain why the following code displays “WTF”:

double pi;
pi = 3,14;
if( pi != 3,14 ) printf( "WTF\n" );

Comments are here below.

Tumblr » powered Sid05 » templated
blog comments powered by Disqus