[an error occurred while processing this directive]
"Мессадж для <ВЕТЕР> {см. в теле мессаджа решение твоей проблемы. Там все ответы на твои "глюки"}...... ©Доктор ТуамОсес inc.
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)

миниатюрный аудио-видеорекордер mAVR

Отправлено ТуамОсес(который Доктор) 15 августа 2006 г. 12:59
В ответ на: "Понял...Попробую по-другому....Многоуважаемый Господин ВЕТЕР!!! Не будете ли Вы так любезны показать нам кусок Вашего бесценного исходника, в котором при присвоении значения переменной типа LONG INT отбрасывается старший байт. Дабы и мы недостойные могли узреть этот страшный глюк компилятора"...... ©Доктор ТуамОсес inc. отправлено <font color=gray>ТуамОсес(который Доктор)</font> 15 августа 2006 г. 12:58

Выдержка из стандарта ISO/IEC 14882:2003(E)}:

A return statement without an expression can be used only in functions that do not return a value, that is, a
function with the return type void, a constructor (12.1), or a destructor (12.4). A return statement with an
expression of non-void type can be used only in functions returning a value; the value of the expression is
returned to the caller of the function. The expression is implicitly converted to the return type of the function
in which it appears. A return statement can involve the construction and copy of a temporary object
(12.2). Flowing off the end of a function is equivalent to a return with no value; this results in undefined
behavior in a value-returning function.
3 A return statement with an expression of type “cv void” can be used only in functions with a return type
of cv void; the expression is evaluated just before the function returns to its caller.


Составить ответ  |||  Конференция  |||  Архив

Ответы


Отправка ответа
Имя (обязательно): 
Пароль: 
E-mail: 

Тема (обязательно):
Сообщение:

Ссылка на URL: 
Название ссылки: 
URL изображения: 


Rambler's Top100 Рейтинг@Mail.ru
Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание