Details
-
AboutMy name is Marek K. My favorite programming languages are C++ and Ruby. I am 14 years old (born 2004). I like to program in my free time and create small programs as a hobby. My love dinner is pizza. I'm from Germany.
-
SkillsC, C++, Ruby, HTML, CSS
-
LocationLaatzen, Germany
-
Website
Joined devRant on 8/3/2018
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
English:
"I'm a liar."
Supposing I tell the truth, I'm not a liar. But that would mean that I am a liar, since I said that I am a liar.
Assuming I did not tell the truth, I would be a liar. But since I said the truth, I would not be a liar.
If one starts from the classical logic, one can make no logical statement. If one starts from the three-valued logic, I would say that "unknown" (u, ½
Is that true, what do you mean?
German:
"Ich bin ein Lügner."
Angenommen, ich würde die Wahrheit sagen, bin ich keine Lügner. Dies würde aber bedeuten dass ich ein Lügner bin, da ich ja gesagt habe dass ich ein Lügner bin.
Angenommen ich würde nicht die Wahrheit sagen, wäre ich ein Lügner. Aber da ich die Wahrheit gesagt habe wäre ich kein Lügner.
Wenn man von der klassischen logik ausgeht, kann man keine logische Aussage machen. Wenn man von der Dreiwertige Logik ausgeht, würde ich sagen, das "unbekannt"(u, ½) rauskommt.
Stimmt das, was meinst du?
https://en.wikipedia.org/wiki/...
https://code.sololearn.com/cFvKb3r8...14 -
As long as the couch does what it should and is stable, I think it's a good code. Programming means knowing what the computer does before it knows it.
Heaven for programmers:2 -
Best Sites to Learn Ruby: poignant.guide, ruby-lang.org, rubymonk.com, SoloLearn App, O'Reilly Books, apidock.com
Beste Seiten um C++ zu lernen: cplusplus.com, cppreference.com, SoloLearn App, O’Reilly Books
And of course, YouTube has also reinforced.
These are my personal experiences. Which method (books, websites, apps) do you think is the best?4 -
Some compilers give an error message on forgotten type casting. From that it shows good typing style casting. So you also avoid clerical errors that can lead to the program crash in the worst case. With some types it is also necessary to perform type casting comma on others Types, however, do this automatically for the compiler.
In short:Type casting is used to prevent mistakes.
An example of such an error would be:
#include <stdio.h>
#include <stdlib.h>
int main ()
{
int * ptr = malloc (10*sizeof (int))+1;
free(ptr-1);
return 0;
}
By default, one tries to access the second element of the requested memory. However, this is not possible, since pointer calculation (+,-) does not work for a void pointer.
The improved example would be:
int * ptr = ((int *) malloc (10*sizeof (int)))+1;
Here, typecasting is done beforehand and this turns the void pointer into its int pointer and pointer calculation can be applied. Note: If instead of error "no output" is displayed on the sololearn C compiler try another compiler.1 -
I find it very interesting how many types of primes there are.
This kind of prime number, I think very nice!
What types of primes do you like?
https://sololearn.com/learn/12365/...6 -
Joke 1: A good horse is expensive. A Trojan can be more expensive.
Joke 2: She: "Do you love me?"
He: "!yes, babe"
(! = not)7