Puzzle 8-12-08
Wyverex
wyverex.cypher at gmail.com
Tue Aug 12 12:46:34 PDT 2008
1)First is simple..
What's the "condition" so that the following code
snippet prints both HelloWorld !
if "condition"
printf ("Hello");
else
printf("World");
2)Next little data structure knowledge need
You are provided with two stacks, and pop() and push() functions for
them. You have to implement queue i.e. enqueue() and dequeue() using the
available operations.
3) little string manipulation
How do you reverse the words in a string?
"My name is Amit Agarwal"
to
"Agarwal Amit is name My"
**try without using the library!
More information about the Digitalmars-d-learn
mailing list