How about we put a simple example:
Code:
#include <stdio.h>
int main(void)
{
char *szFile = "SaveOutput.dat"; /* Hardcoding */
....
return 0;
}
As opposed to:
Code:
#include <stdio.h>
int main(int argc, char *argv[])
{
char *szFile;
if(argc > 1)
{
szFile = argv[1];
}
...
return 0;
}
Bruteforcing is something else. It has to do with trying every possible combination.
Code:
#include <stdio.h>
int main(void)
{
int x;
printf("Enter a number between 0 and 100 inclusive: ");
fflush(stdout);
scanf("%d", &x);
for(i=0;i<101;i++)
{
if(i == x)
{
printf("Your number is %d.\n", x);
}
else printf("I'm guessing your number is %d... Nope, I'm wrong.\n", i);
}
return 0;
}
That's bruteforcing.
Otherwise, you could guess a little better. For example, start with ((HighLimit - LowLimit) / 2), etc. etc..