Потребителско име: Парола:
Регистрация на нов потребител
Отговорник: toedder 
 Computers

Have computer questions, hints, or tips?

BBW's Tips on how to speed up page load the brainking site
Computers (BIG BAD WOLF, 2007-03-12 20:16:01)



Какво ново за adware?
Списък с дискусии
Режим: Всеки може да публикува
Търси сред публикуваното:  

22. октомври 2005, 11:39:21
bitwisexor 
Относно: Re: new board game
fra: x+2? I don't see how that does anything. x += 2 maybye... And there should be a void rather than empty ().

I think the following illustrates it:

nrad@peregrine% cat test.c ~
int x;

int main(void)
{
x+2;
printf("%d\n",x);

return 0;
}

nrad@peregrine% gcc test.c -o test ~
nrad@peregrine% ./test ~
0

Infact, looking at the assembly it appears to have been seen as gcc (correctly) as a nothing instruction and optimized away.

Дата и час
Приятели на линия
Любими дискусии
Дружества
Подсказка на деня
Copyright © 2002 - 2024 Филип Рачунек, всички права запазени
Нагоре