Even with today's hardware we shouldn't be too demanding of it(Examples: System Idle Task or 4 byte booleans).
In my opinion compiled code runs faster and takes up less space than interpreted code. Plus the user doesn't need the interpreter to run your program.
Then there is Java(Yes I noted that you said "usually")
You eventually need to interpret the compiled code.
Interesting, so it compiles at runtime? I guess that counts as compiling.
Oh, I didn't think of that. It's like interpretation that also compiles the program as a binary?
If any brand of computer restricts linux installs then the solution is simple: Don't buy that laptop.
I hope you know DDoS is illegal right?
Community chat(Not just leaders) Code highlighting
The development stopped, I should remove this post.
Are you sure you didn't mean memset? Because I just looked up memcpy and the arguments are 2 pointers and the size to be copied. If I'm reading your code correctly I'll be trying to read 0 bytes from secret to 0x00000004
That gives us the challenge of making it unique.
It's more of a challenge to make your own.
Spearmint
Or you can make a loop that clears each byte of memory.
void cm(void *r, int s) { int p = 0; while(p != (s + 1)) { r[p] = 0; p++; } }I could be wrong but *secret_p = 0; might just clear the first byte. Use my function and try cm(secret_p, sizeof(int));
I'm getting worried that I will be the only entry.
I'll start with my entry:
#include <time.h> int guess(int n) { unsigned int g = 0, l = 4294967295, m = 0, n = 0; srand(time(NULL)); while(g != n) { if(m > l) { g = (rand() % (m - l)) + l; } else { g = rand(); } if(g > n) { m = g; } else if(g < n) { l = g; } else { return n; } n++; } }Might be a bit buggy but that's my solution to the problem.
We are 1 member away from 100
"1 votes" this disturbs me.
I submitted a pull request with the changes needed.
First of all you add the Windows executable(.exe) in the releases, second of all rename the .txt file to a .c file.
There is, it's just that all C source code files really should end in .c and not .txt because .txt is a text document while .c is a C source code file.
One problem, the code file ends in .txt and not .c
It's not C++ it's C
http://www.cplusplus.com/reference/cstdio/fseek/
3 arguments



Hobby ProgrammingCompiled or Interpreted?Oct 05, 2016 at 8:06 AM


