12-17-2012
Thank you, Achenle, for reiterating this point. This point was made in the original post. Obviously, the constant address that is symbolized by the name of the member cannot be changed. The original questions were "why no objection from the compiler" and "where did the NULL go". The best answers seem to be that the NULL was interpreted at its most primitive, a zero, and used to fill the member array, and because this was a slam-dunk move on gcc's part, there was no need for it to object.
10 More Discussions You Might Find Interesting
1. Programming
Hi
We are using a code generator for initializing structures with the #define macro. Compiling it with the GCC 2.8.1 (with -ansi) it OK. But when we are using the SUN C 5.0 compiler it screams.
Following is a code sample:
#include <stdlib.h>
#include <stdio.h>
typedef struct TEST3 {... (4 Replies)
Discussion started by: amatsaka
4 Replies
2. UNIX for Dummies Questions & Answers
As you know, when a user logs in, the shell reads the initialization files in an order something like below...
###################
Bourne Shell
/etc/profile > $HOME/.profile
Bash Shell
/etc/profile > $HOME/.bash_profile > $HOME/.bash_login > $HOME/.profile > $HOME/.bashrc
C Shell... (3 Replies)
Discussion started by: SeanWuzHere
3 Replies
3. Programming
Hi All,
char a="\0";
a) a contains \0
a contains garbage value
b) a contains \
a contains 0
a contains garbage value
Pls, let me know correct result is a or b. I guess a.
Thanks,
Naga:cool: (2 Replies)
Discussion started by: Nagapandi
2 Replies
4. IP Networking
hello, i need help on setting my coyote linux, i've working on this for last 5 days, can't get it to work. I've been posting this message to coyote forum, and other linux forum, but haven't get any answer yet. Hope someone here can help me...... please see my attached picture first.
... (0 Replies)
Discussion started by: dlwoaud
0 Replies
5. Shell Programming and Scripting
Whenever i execute the below scriptlet with out proper file name it deletes /tmp directory .
I guess this is because value of variable a didnt get initialized and there for rm -rf /tmp/ get executed and entire /tmp directory get deleted.
How would i avoid any empty variables to be used in... (9 Replies)
Discussion started by: pinga123
9 Replies
6. Programming
Hello everyone,
I have a question, that are the following ways of pointer intialization same ?
ClassA *point;
point = 0;
point = new ClassA;
Thanks a load in advance!!
Regards, (10 Replies)
Discussion started by: mind@work
10 Replies
7. Programming
I'm writing a program which uses curl to be run on Linux PCs which will be used by a number of different users. I cannot make the users all install curl on their individual machines, so I have tried to link curl in statically, rather than using libcurl.so. I downloaded the source and created a... (8 Replies)
Discussion started by: BrandonShw
8 Replies
8. Shell Programming and Scripting
new to shell scripting.
below line is showing error in script.
${parameter:=word}
in the o/p first it shows the below error.
word: not found.
and then in next line print "word"
----------------
p2: word: not found.
word
---------------------------
OS is AIX and shell is... (12 Replies)
Discussion started by: scriptor
12 Replies
9. Shell Programming and Scripting
Hallo Team,
I have a simple request and i would appreciate your help.
I would like to use two dates in my script lets:
A=$(date +"%d %B %Y")
echo $A
23 June 2014
That's awesome now we cooking. Now i want B to be on the previous month
eg: echo $B Should give me
23 May 2014
I would... (9 Replies)
Discussion started by: kekanap
9 Replies
10. Shell Programming and Scripting
Hi ,
I was invoking a sh file using the nohup command. But while invoking, I received a below error.
Error occurred during initialization of VM
Unable to load native library: /u01/libjava.so: cannot open shared object file: No such file or directory
.
Could you please help out.
Regards,... (2 Replies)
Discussion started by: Kamal1108
2 Replies
LEARN ABOUT DEBIAN
language::intercal::bytecode
INTERCAL::ByteCode(3pm) User Contributed Perl Documentation INTERCAL::ByteCode(3pm)
TITLE
Language::INTERCAL::Bytecode - intermediate language
DESCRIPTION
The CLC-INTERCAL compiler works by producing bytecode from the program source; this bytecode can be interpreted to execute the program
immediately; alternatively, a backend can produce something else from the bytecode, for example C or Perl source code which can then be
compiled to your computer's native object format.
The compiler itself is just some more bytecode. Thus, to produce the compiler you need a compiler compiler, and to produce that you need a
compiler compiler compiler; to produce the latter you would need a compiler compiler compiler compiler, and so on to infinity. To simplify
the programmer's life (eh?), the compiler compiler is able to compile itself, and is therefore identical to the compiler compiler compiler
(etcetera).
The programmer can start the process because a pre-compiled compiler compiler, in the form of bytecode, is provided with the CLC-INTERCAL
distribution; this compiler compiler then is able to compile all other compilers, as well as to rebuild itself if need be.
See the online manual or the HTML documentation included with the distribution for more information about this.
SEE ALSO
A qualified psychiatrist
AUTHOR
Claudio Calvelli - intercal (whirlpool) sdf.lonestar.org (Please include the word INTERLEAVING in the subject when emailing that address,
or the email may be ignored)
perl v5.8.8 2008-03-29 INTERCAL::ByteCode(3pm)