@Mysticial rand() returns a values that is in the user input range, doesn't create the mix between a faked entropy and a predictible behaviour, if you input 0 and 100 you get something between 0-100 and this is not a precise and predictible behaviour to me. — hthy46vbs1 min ago
@Insilico argv[] is a bunch of pointers. Each one points to a string literal in the memory. What is pointed to is a const but the pointer itself can be changed to point to other stuff
@MohamedAhmedNabil Yes. I just said you can modify the values passed to you via the parameters. What was passed to you are pointers to string literals. You can modify the pointers.
And according to the C99 standard you can modify the pointed strings as well. I don't know about C++, though.
I can't say I've been on porn tube sites to experience the amazing banner loading times, but I can't imagine there's anything special involved. Just use highly compressed video. — minitech1 hour ago
A c-style null terminated string exists in ram within an array of chars such that immediately after the last intentionally used character is the numeric value of 0.
and the unused would have been initialized as null.
But, that is very much and assumption and things would likely go very bad.
char foo = 'a'; char* p = &foo;
char * bar = "a"; char * q = &bar;
Notice the difference: In the given example, we had a single char named foo. In my example, I used the string literal "a" (which allocates as two chars: 'a' and '\0' or number zero).