milenko
Thanks for the explanation. But I still don't understand why the linker complain when I define variable as following:
mya.c myb.c error occurs?
-----------------------------------------------------
int tv; int tv; No
int tv=10...
Much thanks for those reponses!
I know using extern could eliminate the error. But what I really want to know is: in what way the linker treat the same global variables defined in two different files.
I also did the following test:
1) using Unix gcc
mya.c myb.c error...
Hi Gurus,
I got confused about a C global variable question.
There are 3 very simple C files:
mya.c
---------------------
#include <stdio.h>
int tv=10;
printav()
{
printf("&av= %x\tav = %d\n", &tv, tv);
}
------------------------
myb.c
------------------------
#include...
aixmurderer,
Thanks a lot for your reponse!
The line in file /etc/inetd.conf about telnet is listed below:
"telnet stream tcp nowait root /usr/sbin/in.telnetd in.telnetd"
And also there is a line in file /etc/services, which is listed here:
"telnet...
Dear all,
Please help me with this problem.
I have a Sun box with the Solaris 7, and now got such a problem. when I want to telnet to this machine from other site, the system will refuse my request by say "Unable to connect to remote host: Connection refused". This also will happen...
Hi,
I encountered a problem about the ORACLE standby database.
I created a standby database and when I enter the SQL statement "recover standby database" to recover it, I got the following message:
SVRMGR> connect internal
Connected.
SVRMGR> recover standby database;
ORA-00279: change...
Hi,
I also had such an experience and I found a solution on another website. Hope it will help.
Workaround
~~~~~~~~~~
Not only will OUI be affected by this bug, most of the post-install
configuration tools will also be affected. Running these tools with "-nojit"
specified will...
I have question like this:
suppose I create a table:
create table mytable(msg raw(254));
and there is a record in this table which contains the following message like:
616C6D6B000000......
I want to retrieve the first character from table mytable, I use such a sql statement:
select...
I have question like this:
suppose I create a table:
create table mytable(msg raw(254));
and there is a record in this table which contains the following message like:
616C6D6B000000......
I want to retrieve the first character from table mytable, I use such a sql statement:
select...
I agree with what Ankan's said. "name" is the variable name of an array. So "&name" is valued as the address of this variable, it's equivalent to "&name[0]". Things would be different if the variable is defined as:
char * name = "scott"
This time...
I was confused about such a fact:
when I declare a array of char type like the following:
char name[30]="scott";
then I have a printf statement:
printf("Addr: %x\n&Addr: %x\n", name, &name);
I got the same value of these two address.
who can tell me the reason about...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.