[Ilugc] C Questions
- From: AnoopS@xxxxxxxxxxx (Anoop Kumar Saxena)
- Date: Wed, 18 Dec 2002 01:30:26 -0500
From: Ganesh Swami [mailto:ganesh@xxxxxxxxxxxxxxx]
Sent: Wednesday, December 18, 2002 11:54 AM
To: Linux User Group Chennai
Subject: Re: [Ilugc] C Questions
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.... :(
********** it should be straight forward if you break those operations into
assembly language instructions.(okay I am not any good in assembly language
but this one is pretty simple.)
What will happen if you compile/run, aith an ansii C compiler, the
It will print "Hello world". You don't use x and y in f1().
************ I dont use x and y in f1(). fine. but why will it not give a
compile error? Is there any way I can access the values of x and y in the
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.
**************** yep. but using function overloading is not overloading coz
the signature essentially remains the same. So there must be another way. C
cant do without function overloading okay to save myself from many arguments
that my above statement will get me into let me say it already has function
overloading and by that I essentially mean, different signature.
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?
To unsubscribe, email ilugc-request@xxxxxxxxxxxxxxxxxx with
"unsubscribe <password> address"
in the subject or body of the message.
Other related posts: