The CE Coding Challange
This would improve your thinking ability and refine your logic.
First we would have some simple questions and then move to more tricky ones.
I would like to roll the dice first.
Q1. Write a Program in C/C++ to print a statement ( say "Hello World") without using a semicolon (in the entire program).
Q2. Write a Program to add two numbers without using "+" .
Q3. Write a Program to multiply two numbers without using "*" .
Now that was a bit kiddish, don't worry, now let's face some questions which are more tricky
-> Write a Program that print it's own source code ie it would then recompile and run itself !
PS :- Though you may find solutions to the above questions googling them, but it would ruin the craziness .
This thread is created so that everyone can learn and improve their programming.
And keep adding more questions to this thread..!!
_______________________________________________________________________
Edit : While answering the questions, please explain the logic also, it would help others in understanding what you have done and others can also learn more stuff.
was getting bored so painted a pic to explain the second code 😛