If this is your product, you can request to edit it here.
"Quick error detection utility"
Summary:
I've used this utility and found it helpful while debugging my small C++ programs. I found some problems while debugging the DLL with size larger than 20mb and therefore I divided the code and made several DLLs of around 2MB. Though its good for small applications. Microsoft has also provided comprehensive documentation for this tool.
"Not a stand-alone, but good stuff."
Summary:
Prefast is a great tool, and I use it in conjunction with FxCop. Prefast is great for PC-based apps. FxCop is better for stuff that we put on the corporate intranet. The kinds of switches that we use through Prefast are pretty much self-explanatory, so it doesn’t take much for me to check the code.
|
What does this code do?
static void mysteryFunction(int nr, int dr) { if (dr == 0 || nr == 0) { return; } if (dr % nr == 0) { System.out.print("1/" + dr / nr); return; } if (nr % dr == 0) { System.out.print(nr / dr); return; } if (nr > dr) { System.out.print(nr / dr + " + "); mysteryFunction(nr % dr, dr); return; } int n = dr / nr + 1; System.out.print("1/" + n + " + "); mysteryFunction(nr * n - dr, dr * n); } // Driver Code public static void main(String[] args) { int nr = 6, dr = 14; System.out.print("Fraction Representation of " + nr + "/" + dr + " is\n "); mysteryFunction(nr, dr); } }
Programming Language: Java