July 21st, 2013, 02:25 AM
Online Test Practice C Programming
Hello guys i am new. I saw all topics but not find any topic related test i mean practice test for programmers. Because like Maths English or science we cant talk about programming to our any senior. Then Practice test websites help a lot they show test result quickly. Guys please reply about my this free online test website.
July 21st, 2013, 03:32 AM
The actual result is compilation failure - which was none of the options presented.
#define JOIN(s1, s2) printf(\"%s=%s %s=%s \\n\", #s1, s1, #s2, s2);
But then again, it seems that all your examples are full of stray \ characters.
Also, what is the point of this useless popup when pressing submit?
Just submit the answer already, don't bore people with your debug code.
You also need to be neutral when posting your questions. When you say "find the error in...", there is no point giving two plausible outputs as these can immediately be dismissed as not the answer, and then it becomes a 50-50 shot at the two options with the word "error" in them.
You should drop any mention of TurboC from your examples. It's obsolete, nobody offering any employment will be the slightest bit interested.
On the plus side, at least all your main functions were declared int and ended with return 0; I was rather expecting to see lots of void main horrors.