Call a method without calling it -Programming Puzzles
Can you come up with a way to get a particular method executed, without explicitly calling it? The more indirect it is, the better. Here's what
Can you come up with a way to get a particular method executed, without explicitly calling it? The more indirect it is, the better. Here's what
Define value of x in such a way that the expression (x == x+2) would evaluate to true. No rule for this programming puzzle. Solutions Jump to C,
Your favourite programming language has just had a birthday. Be nice and sing it the Happy Birthday song. Of course you should accomplish this by writing a program
One of the most common standard tasks is to implement a "cat program": read all of STDIN and print it to STDOUT. While this is named
This is a game where you must count to number from 0 to 1000. However, if the number has a 6 in it, or is divisible by 6,
We can print "hello world" or anything else in C without using semicolon. There are various ways to do so: 1. Using if 2. Using switch
We can write c program without using main() function. To do so, we need to use #define preprocessor directive. The C preprocessor is a micro processor that is
Given two strings, work out if they both have exactly the same characters in them. Example Input word, wrdo This returns true because they are the same but
What general tips do you have for golfing(tips and tricks) in C? 1. Use bitwise XOR or - minus sign to check for inequality between integers: * if(a^
This isn't rocket science. LoL Write a program or function that takes in a single-line string. You can assume it only contains printable ASCII. Print