[Ilugc] C Questions
- From: ganesh@xxxxxxxxxxxxxxx (Ganesh Swami)
- Date: Tue, 17 Dec 2002 22:24:23 -0800
Anoop Kumar Saxena wanted us to know:
Try playing with linked list. If you think thats simple,
optimize ==> for(i = 0; i < 10; i++);
Can't think of any.... :(
What will happen if you compile/run, aith an ansii C compiler, the following
It will print "Hello world". You don't use x and y in f1().
How can you overload a function in C?
I actually checked this up some months back. There is no way to do it
without kludge. One way is to use dirty macros. The other way is to use
some crude vector symbols. I wasn't able to get any further. The sample
code that I had did not compile on my machine (no errors, but just goes
on and on...). :(
I have been enjoying pseudo-overloading in C by using function pointers,
and passing references to structures.
If you know the answers to all of those, please tell me the answer for the
last one (yes it can be done).
: _ /~\'_
My keyboard has an F1 key. Where is the NASCAR key?
Other related posts: