473,287 Members | 1,978 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

c interview

hi....i am preparing for interview...where can i get helpful c
interview questions and tips...also,can anybody provide me with a soft
copy of the c-faq book...thanx and regards..

eric

Aug 1 '06 #1
27 2262
di**********@yahoo.com writes:
hi....i am preparing for interview...where can i get helpful c
interview questions and tips...also,can anybody provide me with a soft
copy of the c-faq book...thanx and regards..
<http://www.c-faq.com/>

I'm not sure whether it contains everything that's in the book.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Aug 1 '06 #2
Hi eric,
di**********@yahoo.com wrote:
hi....i am preparing for interview...where can i get helpful c
interview questions and tips...
See if these puzzles are of any help to you:
http://www.gowrikumar.com/c/index.html

Regards,
Gowri Kumar

Aug 1 '06 #3
gk*******@gmail.com wrote:
See if these puzzles are of any help to you:
http://www.gowrikumar.com/c/index.html
IMHO, most of these questions are reflective of the silly "gotcha"
questions that often pass as interview questions - not *your* fault,
of course. However, regular readers of comp.lang.c will find a number of
things to nitpick about that you (and many employers) have either
failed to account for or are simply unaware of. To cite possibly the
most obvious example, the return value of malloc() is always cast in
your sample questions; a quick Google search of this group's archives
will reveal that the experts' consensus is that this is a bad idea, an
opinion shared by the FAQ:

http://c-faq.com/malloc/cast.html
http://c-faq.com/malloc/mallocnocast.html

I believe a thorough reading of the FAQ will help you improve both
your quiz and your practical knowledge of C.

--
C. Benson Manica | I *should* know what I'm talking about - if I
cbmanica(at)gmail.com | don't, I need to know. Flames welcome.
Aug 2 '06 #4
Hi Benson,
Glad to see your reply.
However, regular readers of comp.lang.c will find a number of
things to nitpick about that you (and many employers) have either
failed to account for or are simply unaware of.
Firstly, I'm not an expert in C programming and I'm still learning.
It's an effort I'm making to share the little knowledge I have gained
with others and also to learn more in the process
I would be grateful, if you/anyone here can point out all the mistakes
and provide the suggestions to make it better.
To cite possibly the
most obvious example, the return value of malloc() is always cast in
your sample questions; a quick Google search of this group's archives
will reveal that the experts' consensus is that this is a bad idea, an
opinion shared by the FAQ:

http://c-faq.com/malloc/cast.html
http://c-faq.com/malloc/mallocnocast.html
I would modify the sources appropriately.
I believe a thorough reading of the FAQ will help you improve both
your quiz and your practical knowledge of C.
Thanks for the suggestion. I will do that soon.

Also, if anyone has else has feedback on the questions, please feel
free to send them across to me.

Have a terrific day!!!

Regards,
Gowri Kumar

Aug 2 '06 #5

Christopher Benson-Manica wrote:
gk*******@gmail.com wrote:
See if these puzzles are of any help to you:
http://www.gowrikumar.com/c/index.html

IMHO, most of these questions are reflective of the silly "gotcha"
questions that often pass as interview questions - not *your* fault,
of course. However, regular readers of comp.lang.c will find a number of
things to nitpick about that you (and many employers) have either
failed to account for or are simply unaware of. To cite possibly the
most obvious example, the return value of malloc() is always cast in
your sample questions;
To be fair though, in one of them at least that's part of the point of
the example - the lack of a proper declaration of malloc() is the cause
of the problem, and the cast hides it (sometimes). It is a shame that
having started off with a good example of why it's bad to cast
malloc(), the rest of the examples do so!

The site reminds me of a classic FAQ list I came across once; answers
and explanations would be helpful.

Aug 2 '06 #6
hi GK...u rocks...ur questions too!!!....thanx for the materials...i am
also learning c and found ur reference to be very interesting....hav u
got ny soft-copy of the book programming pearls...i would like to hav
it....bye..regards...eric

Aug 2 '06 #7
di**********@yahoo.com wrote:
hi GK...u rocks...ur questions too!!!....thanx for the materials...i am
also learning c and found ur reference to be very interesting....hav u
got ny soft-copy of the book programming pearls...i would like to hav
it....bye..regards...eric
Well boy, keep emitting this shitty language and
I am sure you will join the dole.
Aug 2 '06 #8
di**********@yahoo.com writes:
hi GK...u rocks...ur questions too!!!....thanx for the materials...i am
also learning c and found ur reference to be very interesting....hav u
got ny soft-copy of the book programming pearls...i would like to hav
it....bye..regards...eric
*Please* don't use silly abbreviations when you post here. Take the
time to spell out words: "you", "your", "have", "any", etc.
Capitalize the word "I" and the first word of each sentence. A
sentence ends with a single ".", not an ellipsis "...".

We're here to communicate. If you're not interested in doing so, try
somewhere else.

I'm familiar with the book "Programming Pearls". As far as I know,
there is no legally obtainable soft copy (and we will not help you
obtain an illegal one).

A good introduction to this newsgroup is at
<http://clc-wiki.net/wiki/Introduction_to_comp.lang.c>.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Aug 2 '06 #9
Hi Benson,
http://c-faq.com/malloc/cast.html
http://c-faq.com/malloc/mallocnocast.html
I would modify the sources appropriately.
Done.
I have modified the sources (except one) using malloc to not to cast.

Anything else needs to be corrected?

Regards,
Gowri Kumar

Aug 2 '06 #10
On 1 Aug 2006 00:20:30 -0700, di**********@yahoo.com wrote:
>hi....i am preparing for interview...where can i get helpful c
interview questions and tips
I don't necessarily know about any helpful C interview questions and
tips I can help you with, but for what it's worth, here's the
transcript of the start of an interview I could envision with someone
(denoted by "I", for the Interviewee):

Me: What you see on the white board is a sentence written with
improper capitalization and grammar ("i am preparing for interview.").
Go up there and write in the corrected sentence just below it.

I: That question has nothing to do with "C". Can you ask me a question
about "C"? ... sir? ... after all, I've prepared well to answer
questions about "C" ... sir ... isn't that what you want? ... sir? ...
please ... sir ... help me.

Me: Thank you Mr. I. Lilly is now here to escort you out the door.
>...also,can anybody provide me with a soft
copy of the c-faq book...thanx and regards..
I hope the soft copy never comes out. Buy the hard copy. It was the
best money I ever spent, and your mileage shouldn't vary.

--
jay
Aug 2 '06 #11
gk*******@gmail.com said:
Hi Benson,
http://c-faq.com/malloc/cast.html
http://c-faq.com/malloc/mallocnocast.html
I would modify the sources appropriately.
Done.
I have modified the sources (except one) using malloc to not to cast.

Anything else needs to be corrected?
Yes. I'll get back to you when I have more time - hopefully later today. If
I haven't replied by, say, six hours from the time this arrives on your
server, reply to this message.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Aug 2 '06 #12
On 2006-08-02, gk*******@gmail.com <gk*******@gmail.comwrote:
Hi Benson,
http://c-faq.com/malloc/cast.html
http://c-faq.com/malloc/mallocnocast.html
I would modify the sources appropriately.
Done.
I have modified the sources (except one) using malloc to not to cast.

Anything else needs to be corrected?
I've lost the original message. Could you repost the link?

--
Andrew Poelstra <http://www.wpsoftware.net/projects>
To reach me by email, use `apoelstra' at the above domain.
"Do BOTH ends of the cable need to be plugged in?" -Anon.
Aug 2 '06 #13

ap*******@localhost.localdomain wrote:
On 2006-08-02, gk*******@gmail.com <gk*******@gmail.comwrote:
Hi Benson,
http://c-faq.com/malloc/cast.html
http://c-faq.com/malloc/mallocnocast.html
I would modify the sources appropriately.
Done.
I have modified the sources (except one) using malloc to not to cast.

Anything else needs to be corrected?

I've lost the original message. Could you repost the link?
Here it is: http://www.gowrikumar.com/c/index.html

It's in the third message in the topic.

Aug 2 '06 #14

di**********@yahoo.com wrote:
hi....i am preparing for interview...where can i get helpful c
interview questions and tips...also,can anybody provide me with a soft
copy of the c-faq book...thanx and regards..

eric
Just my opinion, but you probably don't want to try faking it at an
interview. I can think up a dozen questions that are only answerable
if you have real experience. Especially if you say you have xxx years
of experience with xxxx C. Questions like:

(1) If you've used this compiler more than 10 minutes, you've gotten
the message "Insincere declaration of fungible foggy entity". What
does this message really mean? (Most compilers have at least one very
opaque het always-poping up error message). You rarely can learn this
by reading a book.

(2) If you've ever compiled anything with this compiler, you've gotten
the run-time message "Seg Voil @ A0056" What do you do to find the
cause of the problem. (Generic FAQ's are not very helpful in learning
the quirks of a particular debugger).

(3) That compiler likes to emit lots of one particular relatively
harmless warning. How do you turn off just that warning (If you are a
good programmer, you've probably enabled FULL warnings, but you most
likely need to turn at least one of them off with a -NoWarn:C4996 )

..... and being found out to be a charlatan is a really good way to
free up the rest of your morning. No more tedious interviews for you!
On the other hand, if they lob softball questions at you, they're
probably not going to be of much help to you if you're hired. Watch
out for this too.

Aug 2 '06 #15
Ancient_Hacker <gr**@comcast.netwrote:
On the other hand, if they lob softball questions at you, they're
probably not going to be of much help to you if you're hired. Watch
out for this too.
This, at least, is true, as I've learned the hard way.

--
C. Benson Manica | I *should* know what I'm talking about - if I
cbmanica(at)gmail.com | don't, I need to know. Flames welcome.
Aug 2 '06 #16
Christopher Benson-Manica wrote:
>
Ancient_Hacker <gr**@comcast.netwrote:
On the other hand, if they lob softball questions at you, they're
probably not going to be of much help to you if you're hired. Watch
out for this too.

This, at least, is true, as I've learned the hard way.
I think every "C interview" should be mandated to include:

1) What is the expected output of this program?

void main()
{
int i = 10;
i = i++;
printf("%d",i);
}

This would allow both the interviewer and interviewee to determine
if they're well matched.

--
+-------------------------+--------------------+-----------------------+
| Kenneth J. Brody | www.hvcomputer.com | #include |
| kenbrody/at\spamcop.net | www.fptech.com | <std_disclaimer.h|
+-------------------------+--------------------+-----------------------+
Don't e-mail me at: <mailto:Th*************@gmail.com>

Aug 2 '06 #17
Kenneth Brody said:
I think every "C interview" should be mandated to include:

1) What is the expected output of this program?

void main()
{
int i = 10;
i = i++;
printf("%d",i);
}
That one's easy. It will - or at least should - output: "Fire the author of
this code, and hire someone who knows the language instead." If it doesn't,
that's because of the famous "printf bug" in their compiler.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Aug 2 '06 #18
gk*******@gmail.com said:
Hi Benson,
http://c-faq.com/malloc/cast.html
http://c-faq.com/malloc/mallocnocast.html
I would modify the sources appropriately.
Done.
I have modified the sources (except one) using malloc to not to cast.

Anything else needs to be corrected?
On looking at the page again, I decided not to prepare a list. The
superficial bugs - the ones the author put in deliberately (because that's
the puzzle, so to speak) - are sufficiently jumpy-outy that I can't easily
see past them to any underlying bugs (which might not even be there, after
all) without spending more time than I am prepared to devote to the task.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Aug 2 '06 #19
gk*******@gmail.com wrote:
Hi eric,
di**********@yahoo.com wrote:
hi....i am preparing for interview...where can i get helpful c
interview questions and tips...
See if these puzzles are of any help to you:
http://www.gowrikumar.com/c/index.html
That's quite a resource you got there Gowri. I especially
like the "programming interview questions". You don't
seem to have the one which asks how you can detect a
cycle in a link list. If I remember correctly van der Linden
says that they always ask that at Sun interviews.

You should put answers somewhere or at least hints. By
the way in question 65 are you allowed to flip discs ? In
75 I'm not clear what you're asking.

Spiros Bousbouras

Aug 2 '06 #20
Afghan Hound wrote:
ap*******@localhost.localdomain wrote:
>On 2006-08-02, gk*******@gmail.com <gk*******@gmail.comwrote:
>>Hi Benson,
http://c-faq.com/malloc/cast.html
http://c-faq.com/malloc/mallocnocast.html
I would modify the sources appropriately.
Done.
I have modified the sources (except one) using malloc to not to cast.

Anything else needs to be corrected?
I've lost the original message. Could you repost the link?

Here it is: http://www.gowrikumar.com/c/index.html

It's in the third message in the topic.
You use printf without a function prototype in scope. This invokes
undefined behaviour because printf is a varidac function. ALWAYS include
stdio.h before using printf and other headers as appropriate before
using other functions.

In your first CountBits function you assume that int is 32 bits. int
could be as small as 16 bits. If you want a number of at least 32 bits
use long. In addition it is not guaranteed to work properly with
negative numbers, so you should use an unsigned type such as unsigned long.

You should acknowledge the original author of Duff's device. Tom Duff
deserves recognition for his highly warped thinking. I suggest a link
over to http://www.lysator.liu.se/c/duffs-device.html unless someone can
suggest a better link.

int foobar();
is *not* a function prototype. To be correct I believe you should say:
| Are the following two function declarations same?
|
| int foobar(void);
| int foobar();

The program that then passes parameters to foobar2 (which uses the
non-prototype form) invokes undefined behaviour which means that
*anything* can happen. There are even ways it could cause a program to
crash! You should point out that even though it might work it is not
required to.

Your example:
| #include <stdio.h>
| int main()
| {
| float a = 12.5;
| printf("%d\n", a);
| printf("%d\n", *(int *)&a);
| return 0;
| }
may also not behave as *you* expect since it invokes undefined
behaviour. If I recall correctly one implementation I have would print
12 on the first line and other implementations I have definitely would not.

You don't always check the value returned by malloc before using it. You
should.

In the following example you say there will not be a linker error:
| a.c
| ---
|
| int a;
|
| b.c
| ---
|
| int a = 10;
|
| main.c
| ------
|
| extern int a;
| int main()
| {
| printf("a = %d\n",a);
| return 0;
| }

Apart from the fact it gives a warning with gcc on my implementations...
markg@brenda:~$ gcc a.c b.c main.c
main.c: In function ‘main’:
main.c:4: warning: incompatible implicit declaration of built-in
function ‘printf’

On other systems, or with other options to gcc, it will generate an
error for the multiple declarations. e.g.
markg@brenda:~$ gcc -fno-common a.c b.c main.c
main.c: In function ‘main’:
main.c:4: warning: incompatible implicit declaration of built-in
function ‘printf’
/tmp/cc7nbS36.o:(.data+0x0): multiple definition of `a'
/tmp/cc6wAnSK.o:(.bss+0x0): first defined here
collect2: ld returned 1 exit status

Some implementations will generate a warning or error even without
special options.

Your example of a definition of the offsetof macro invokes undefined
behaviour. It is *not* possible to implement it portably and this is
probably why it is provided in a standard header.

Some of your other example questions are, in my opinion, plain stupid.
This does not mean that they are never asked of course!

I would also suggest you include references to other useful resources,
in particular the comp.lang.c FAQ at http://c-faq.com/

I'm sure others will have more comments.
--
Flash Gordon
Still sigless on this computer.
Aug 2 '06 #21
Richard Heathfield wrote:
>
Kenneth Brody said:
I think every "C interview" should be mandated to include:

1) What is the expected output of this program?

void main()
{
int i = 10;
i = i++;
printf("%d",i);
}

That one's easy. It will - or at least should - output: "Fire the author of
this code, and hire someone who knows the language instead." If it doesn't,
that's because of the famous "printf bug" in their compiler.
[restoring an additional paragraph from my post:]
This would allow both the interviewer and interviewee to determine
if they're well matched.
Well, if you were to give that as the answer, and the interviewer
were to say "very good!", then you're well matched. If the response
to your answer were something like "sorry, the correct answer is 10",
then you should run away as fast as you can.

Also, if one were to answer "10" (or "11", or any other specific
number) and they tell you "that's right", then they deserve each
other.

--
+-------------------------+--------------------+-----------------------+
| Kenneth J. Brody | www.hvcomputer.com | #include |
| kenbrody/at\spamcop.net | www.fptech.com | <std_disclaimer.h|
+-------------------------+--------------------+-----------------------+
Don't e-mail me at: <mailto:Th*************@gmail.com>

Aug 2 '06 #22

Kenneth Brody wrote:

As a mildly fascinating coincidence, not only should one not depend on
the result of "i = i++", but the original K&R targeted computer, the
PDP-11, has the same problem on the hardware level. Many many
instructions are unreliable as to what value they use, the predecmented
value or the postincremented one. That is of course only if you use one
or both modes in the same instruction. For example, different PDP-11
models push either n or n-2 with this instruction:
MOV #n,R0
MOV -(R0),R0

Same for many 2-operand instructions. Yuck.

Aug 2 '06 #23
Hi Richard,
On looking at the page again, I decided not to prepare a list. The
superficial bugs - the ones the author put in deliberately (because that's
the puzzle, so to speak) - are sufficiently jumpy-outy that I can't easily
see past them to any underlying bugs (which might not even be there, after
all) without spending more time than I am prepared to devote to the task.
Thanks for the time you have spent on it.

I have a sligthly different opinion. I feel that explaining the
concepts with the help of an example has more value than the plain
statement.

Let's say the statement:
Variable names start with a alphabet and can contain alphabets, digits
or an undesrcore.
And then provide the example of the HP-UX as listed on the site.

Similarly comparision between signed and unsigned types. Give the
theory and then show how it's effects can be.
(the first on the list to print the elements of the array)

Also, it's not mentioned on the website that these questions are to
used for interview or anything of that sort.
I found them interesting and I learnt an aspect of C and I would expect
someone else might as well get benefited out of it.
..
Regards,
Gowri Kumar

Aug 3 '06 #24
Hi Bousbouras,
That's quite a resource you got there Gowri. I especially
like the "programming interview questions". You don't
seem to have the one which asks how you can detect a
cycle in a link list. If I remember correctly van der Linden
says that they always ask that at Sun interviews.
Thanks for the comment. Yes you are right..

<OT - This has nothing related to C :-) >
You should put answers somewhere or at least hints. By
the way in question 65 are you allowed to flip discs ?
Yes. you can flip the discs
In 75 I'm not clear what you're asking.
Asking for the difference between "Binary tree" and "Binary *search*
tree"
The ordering property of the binary *search* tree needs to be checked
in the code.

</OT >

Regards,
Gowri Kumar

Aug 3 '06 #25
Hi Flash,
First of all, thanks a lot for the detailed comments.
You use printf without a function prototype in scope. This invokes
undefined behaviour because printf is a varidac function. ALWAYS include
stdio.h before using printf and other headers as appropriate before
using other functions.
For most of the programs, I have included it. But as you pointed out I
missed out in a few of them. Thanks for pointing it.
In your first CountBits function you assume that int is 32 bits. int
could be as small as 16 bits. If you want a number of at least 32 bits
use long. In addition it is not guaranteed to work properly with
negative numbers, so you should use an unsigned type such as unsigned long.
Would make it a point that the size of int is assumption to be ....
int foobar();
is *not* a function prototype. To be correct I believe you should say:
| Are the following two function declarations same?
Agreed.

..
Your example:
| #include <stdio.h>
| int main()
| {
| float a = 12.5;
| printf("%d\n", a);
| printf("%d\n", *(int *)&a);
| return 0;
| }
may also not behave as *you* expect since it invokes undefined
behaviour. If I recall correctly one implementation I have would print
12 on the first line and other implementations I have definitely would not.
Yes, But most of the questions (including this) are open ended
questions. They are not multiple choice
questions with fixed answers..
And it is also stated on the website (in the introduction before the
programs):
<snip>
Most of the programs are meant to be compiled, run and to be explained
for their behaviour
</snip>

You don't always check the value returned by malloc before using it. You
should.
Yes.
Your example of a definition of the offsetof macro invokes undefined
behaviour. It is *not* possible to implement it portably and this is
probably why it is provided in a standard header.
It may invoke undefined bahaviour. But for the implementation (which is
assumed to work), the reader is expected to find out how it is working.
Some of your other example questions are, in my opinion, plain stupid.
This does not mean that they are never asked of course
Agreed.
But history says something more about the stupid mistakes[1]

Who have expected that the following stupid bug would
have cause the major disruption of AT&T phone services
throughout US. (AT&T's network was unusable for almost
nine hours starting on afternoon of January 15,1990)

<snip>
network code()
{
switch (line) {
case THING1:
doit1();
break;
case THING2:
if (x == STUFF) {
do_first_stuff();
if (y == OTHER_STUFF)
break;
do_later_stuff();
} /* coder meant to break to here... */
initialize_modes_pointer();
break;
default:
processing();
} /* ...but actually broke to here! */
use_modes_pointer();/* leaving the modes_pointer
uninitialized */
}
</snip>

and fingerd code leading to a worm creating havoc in November 1998
<snip>
main(argc, argv)
char *argv[];
{
char line[512];
...
gets(line);
</snip>

And this causing an ANSI C compiler to become very slow:
<snip>

int hashval=0;
/* PJW hash function from "Compilers: Principles, Techniques,
and Tools"
* by Aho, Sethi, and Ullman, Second Edition.
while (cp < bound)
{
unsigned long overflow;
hashval = ( hashval <<4)+*cp++;
if ((overflow = hashval & (((unsigned long) 0xF) << 28)) != 0)
hashval ^= overflow | (overflow >24);
}
hashval %= ST_HASHSIZE; /* choose start bucket */
/* Look through each table, in turn, for the name. If we fail,
* save the string, enter the string's pointer, and return it.
*/
for (hp = &st_ihash; ; hp = hp->st_hnext) {
int probeval = hashval; /* next probe value */
...
.....
......
</snip>
You should acknowledge the original author of Duff's device. Tom Duff
deserves recognition for his highly warped thinking. I suggest a link
over to http://www.lysator.liu.se/c/duffs-device.html unless someone can
suggest a better link
I would also suggest you include references to other useful resources,
in particular the comp.lang.c FAQ at http://c-faq.com/
References and credits are badly missing. I would work on it in the
near future.
When I hosted up those questions, I never thought the site would become
so popular that it now ranks in top 20 for the search "c puzzles" in
google. Now I'm making an effort to make the questions more correct and
the material to be more useful.

Regards,
Gowri Kumar
[1] From the book "Expert C programming - Deep C secrets" -by Peter Van
Der Lindenman
In fact many of the examples are taken directly from the above book ( I
do have persmission for it from Peter).

Aug 3 '06 #26
[1] From the book "Expert C programming - Deep C secrets" -by Peter Van
Der Lindenman
In fact many of the examples are taken directly from the above book ( I
do have persmission for it from Peter).
A smalll correction: "The examples listed on the website".

Regards,
Gowri Kumar

Aug 3 '06 #27
On 2 Aug 2006 14:54:42 -0700, "Ancient_Hacker" <gr**@comcast.net>
wrote:
>
Kenneth Brody wrote:

As a mildly fascinating coincidence, not only should one not depend on
the result of "i = i++", but the original K&R targeted computer, the
PDP-11, has the same problem on the hardware level. Many many
Well, many many of the full-2-op instructions, of which there are only
7 or 12 depending on how you count.
instructions are unreliable as to what value they use, the predecmented
value or the postincremented one. That is of course only if you use one
You mean whether they use the predecremented or not predecremented
value, or the postincremented or not postincremented. There are no
model dependencies that get the _mode_ wrong.
or both modes in the same instruction. For example, different PDP-11
models push either n or n-2 with this instruction:
(Assuming n is even and n-2 is writable, in data space.)
MOV #n,R0
MOV -(R0),R0
MOV R0, -(R0) ; source first then dest, as you have just above
PDP-11 (and then VAX) assembler were AFAIK unique in their day in
using source, dest order. Well, and Mot 68k, which was visibly
influenced (at least) by VAX. Since Unix 'as' was originally for -11,
and then reincarnated as GNU 'gas', so-called 'AT&T syntax' has
spread, even metastasized, all over the place.
Same for many 2-operand instructions. Yuck.
- David.Thompson1 at worldnet.att.net
Aug 14 '06 #28

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: softwareengineer2006 | last post by:
All Interview Questions And Answers 10000 Interview Questions And Answers(C,C++,JAVA,DOTNET,Oracle,SAP) I have listed over 10000 interview questions asked in interview/placement test papers for...
0
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of attending interviews. If you own a company best way to judge if...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
0
by: connectrajesh | last post by:
INTERVIEWINFO.NET http://www.interviewinfo.net FREE WEB SITE AND SERVICE FOR JOB SEEKERS /FRESH GRADUATES NO ADVERTISEMENT
2
by: freepdfforjobs | last post by:
Full eBook with 4000 C#, JAVA,.NET and SQL Server Interview questions http://www.questpond.com/SampleInterviewQuestionBook.zip Download the JAVA , .NET and SQL Server interview sheet and rate...
0
by: freesoftwarepdfs | last post by:
Ultimate list of Interview question website.....Do not miss it http://www.questpond.com http://msdotnetsupport.blogspot.com/2007/01/net-interview-questions-by-dutt-part-2.html...
0
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
0
by: reema | last post by:
EJB Interview Questions http://interviewdoor.com/technical/EJB-Interview-Questions.htm CSS Interview Questions http://interviewdoor.com/technical/CSS-Interview-Questions.htm C Interview Questions...
0
by: reema | last post by:
EJB Interview Questions http://interviewdoor.com/technical/EJB-Interview-Questions.htm CSS Interview Questions http://interviewdoor.com/technical/CSS-Interview-Questions.htm C Interview Questions...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.