One instruction per line
This tip submitted by Ludovic Flender on 2011-06-20 12:20:50. It has been viewed 5695 times.Rating of 6.6 with 15 votes
Use only one instruction on each line.
It will increase readability AND allow you to debug much
Instead of:
{ const bool result = function1( function2( function3( )));}
Prefer:
{ const int res1 = function3(); const Type res2 = function2(res1); const bool result = function1(res2); }
Note the use of
merqery in c
This tip submitted by Rating of 8.3 with 8 votes
#include
#include
{
printf(\"enter the name\");
scanf(\"%s\",name);
{
printf(\"%s\",name);
}
}