سي99

C99 (المعروف سابقًا باسم C9X ) هو اسم غير رسمي لـ ISO / IEC 9899: 1999، وهو إصدار سابق من معيار لغة البرمجة C. [1] يمتد الإصدار السابق (C90) بميزات جديدة للغة والمكتبة القياسية، ويساعد التطبيقات على الاستفادة بشكل أفضل من أجهزة الكمبيوتر المتاحة، مثل حساب الفاصلة العائمة IEEE 754-1985 وتقنية المترجم. [2] يحل إصدار C11 من معيار لغة البرمجة C، الذي تم نشره في عام 2011، محل C99.

مثال

يوضح المثال التالي المشروح من كود C99 لحساب دالة الكسر المستمر الميزات الرئيسية:

#include <stdio.h>
#include <math.h>
#include <float.h>
#include <fenv.h>
#include <tgmath.h>
#include <stdbool.h>
#include <assert.h>
 
double compute_fn(double z) // [1]
{
    #pragma STDC FENV_ACCESS ON // [2]

    assert(FLT_EVAL_METHOD == 2); // [3]

    if (isnan(z)) // [4]
        puts("z is not a number");

    if (isinf(z))
        puts("z is infinite");

    long double r = 7.0 - 3.0/(z - 2.0 - 1.0/(z - 7.0 + 10.0/(z - 2.0 - 2.0/(z - 3.0)))); // [5, 6]

    feclearexcept(FE_DIVBYZERO); // [7]

    bool raised = fetestexcept(FE_OVERFLOW); // [8]

    if (raised)
        puts("Unanticipated overflow.");

    return r;
}

int main(void)
{
    #ifndef __STDC_IEC_559__
    puts("Warning: __STDC_IEC_559__ not defined. IEEE 754 floating point not fully supported."); // [9]
    #endif

    #pragma STDC FENV_ACCESS ON

    #ifdef TEST_NUMERIC_STABILITY_UP
    fesetround(FE_UPWARD);          // [10]
    #elif TEST_NUMERIC_STABILITY_DOWN
    fesetround(FE_DOWNWARD);
    #endif

    printf("%.7g\n", compute_fn(3.0));
    printf("%.7g\n", compute_fn(NAN));

    return 0;
}

انظر أيضًا

  • C18 ، C11 ، ANSI C ، إصدارات من لغة البرمجة C.
  • C ++ 17 ، C ++ 14 ، C ++ 11 ، C ++ 03 ، C ++ 98 ، إصدارات من معيار لغة البرمجة C ++
  • النقطة العائمة ، لمزيد من المناقشة حول استخدام أجهزة IEEE 754

المراجع

  1. ^ "ISO/IEC 9899:1999 - Programming languages - C". Iso.org. 8 ديسمبر 2011. مؤرشف من الأصل في 2016-10-10. اطلع عليه بتاريخ 2014-04-08.
  2. ^ http://grouper.ieee.org/groups/754/meeting-materials/2001-07-18-c99.pdf نسخة محفوظة 2017-06-22 على موقع واي باك مشين.

قراءة متعمقة

روابط خارجية

سبقه
'


تبعه

Read other articles:

Firearm rail interface system This article contains content that is written like an advertisement. Please help improve it by removing promotional content and inappropriate external links, and by adding encyclopedic content written from a neutral point of view. (November 2022) (Learn how and when to remove this template message) M-LOK TypeAttachment SystemPlace of originUnited StatesProduction historyDesignerMagpul IndustriesDesigned2007–2014Produced2014–present Magpul MOE handgu...

Dirección General de Arquitectura, Vivienda y Suelo Último logotipo de la Dirección General (2018-2020) Sede del MinisterioInformación generalÁmbito España EspañaJurisdicción EspañaTipo Dirección GeneralSede Paseo de la Castellana, 6728046OrganizaciónDepende de Secretaría General de ViviendaEntidad superior Ministerio de FomentoPresupuesto anual 482,4 millones de € (2019)HistoriaFundación 1978 (primera vez)1987 (segunda vez)Disolución 1987 (primera vez)2020 (segunda vez)S...

L’espace de la culture des Gongs *  Patrimoine culturel immatériel Gongs du Tây Nguyên Pays * Viêt Nam Liste Liste représentative Année d’inscription 2008 Année de proclamation 2005 * Descriptif officiel UNESCO modifier  L'espace de la culture des Gongs (Không gian văn hóa Cồng Chiêng Tây Nguyên) du Tây Nguyên, dans les montagnes du centre du Vietnam, couvre cinq provinces du Viêt Nam (Đắk Nông, Đắk Lắk, Gia Lai, Kon Tum et Lâm Đồng)[1] ...

Stijn Coninx (2014) Augustijn Robert Marguerite (Stijn) baron Coninx (Neerpelt, 21 februari 1957) is een Belgisch cineast. Carrière In 1980 studeert hij af als regisseur aan het RITCS in Brussel met een documentaire over Raoul Servais.[1] Zijn carrière begint hij als assistent-regisseur van verschillende Belgische films. In 1987 maakt hij met Hector zijn eerste langspeelfilm. De hoofdrol is weggelegd voor de komiek Urbanus en dit blijkt een groot succes. In 1990 komt Koko Flanel, de...

As referências deste artigo necessitam de formatação. Por favor, utilize fontes apropriadas contendo título, autor e data para que o verbete permaneça verificável. (Dezembro de 2020) Esta página cita fontes, mas que não cobrem todo o conteúdo. Ajude a inserir referências. Conteúdo não verificável pode ser removido.—Encontre fontes: ABW  • CAPES  • Google (N • L • A) (Dezembro de 2020) Cidades metropolitanas da Itáli...

القراعيه (جيزان) القراعيه (جازان)علم المملكة العربية السعودية القراعيه (جازان)شعار المملكة العربية السعودية سيفين ونخلة تقسيم إداري البلد  السعودية العاصمة الرياض المنطقة جيزان المحافظة محافظة أحد المسارحة المدينة أحد المسارحة البلدية بلدية محافظة أحد المسارحة القرية

Село Агбулаказерб. Ağbulaq Координати 39°44′41″ пн. ш. 46°54′52″ сх. д.H G O Країна  Азербайджан АзербайджанРайон ХоджавендськийВисота центру 776 мНаселення 71 осіб (2005)Національний склад вірмениКонфесійний склад Вірменська апостольська церкваЧасовий пояс...

ブラックタウン・ベースボールスタジアムBlacktown Baseball Stadium ブラックタウン・ベースボールスタジアム施設データ所在地 オーストラリアニューサウスウェールズ州ルーティヒル座標 北緯33度46分17秒 西経150度51分13秒 / 北緯33.77139度 西経150.85361度 / 33.77139; -150.85361座標: 北緯33度46分17秒 西経150度51分13秒 / 北緯33.77139度 西経150.85361度 / 3...

У Вікіпедії є статті про інші вулиці з такою назвою: Проспект Петра Григоренка. Проспект Петра ГригоренкаХарків Проспект Петра Григоренка у районі тролейбусної зупинки 29-й мікрорайонПроспект Петра Григоренка у районі тролейбусної зупинки 29-й мікрорайонМісцевість Нові...

Bei dem Eisenbahnunfall von Hartford entgleiste am 5. Februar 1887 ein Zug der Vermont Central Railroad (CR) auf einer Brücke westlich von Hartford, Vermont, USA, in Folge eines Schienenbruchs. Wagen stürzten in den zugefrorenen Fluss und verbrannten, ebenso wie die Brücke. 37 Menschen starben. Darstellung des Unfalls auf der Titelseite von Frank Leslie's Illustrated Newapaper vom 12. Februar 1887 Inhaltsverzeichnis 1 Ausgangslage 1.1 Infrastruktur 1.2 Der Zug 1.3 Wetter 2 Unfallhergang 3 ...

JKT48 9th Anniversary Concert "SOL/LUNA"Tanggal16 Desember 2020 mulai pukul 18:30 WIB (jelang konser)18 Desember 2020 mulai pukul 19:00 WIB (pertunjukan konser)LokasiTeater JKT48, Lantai 4 Mal fX Sudirman, Jakarta Pusat, DKI Jakarta (jelang konser)Studio 14 RCTI+ MNC Studios, Jakarta Barat, DKI Jakarta (pertunjukan konser)Peserta/Pihak terlibatSeluruh anggota JKT48Situs webPemesanan Tiket di Mister Aladin (pertunjukan konser) Kronologi Konser Ulang Tahun JKT48 JKT48 8th Anniversary Co...

Instituto de Estudios Regionales Universidad Universidad de Antioquia Localización Calle 67 No. 53-108. Bloque 9, Ciudad Universitaria, Medellín, Colombia Fundación 1989 Director Alejandro Pimienta Betancur Docentes Carlo Emilio Piazzini Suárez Alejandro Pimienta Betancur Luis Antonio Ramírez Zuluaga Guberney Muñetón Santa Natalia Quiceno Toro Andrés García Sánchez Clara Inés Aramburo Siegert Lida Sepúlveda López Jenni Carolina Perdomo Sánchez Harold Cardona-Trujillo Estudiantes...

This biography of a living person needs additional citations for verification. Please help by adding reliable sources. Contentious material about living persons that is unsourced or poorly sourced must be removed immediately from the article and its talk page, especially if potentially libelous.Find sources: Bharat Kamat – news · newspapers · books · scholar · JSTOR (March 2019) (Learn how and when to remove this template message) Bharat KamatBackgroun...

New Hampshire gubernatorial election 1829 New Hampshire gubernatorial election ← 1828 March 10, 1829 1830 →   Nominee Benjamin Pierce John Bell Party Democratic National Republican Popular vote 22,615 19,583 Percentage 53.53% 46.35% Governor before election John Bell National Republican Elected Governor Benjamin Pierce Democratic Elections in New Hampshire Federal government Presidential elections 1788-89 1792 1796 1800 1804 1808 1812 1816 1820 1824 1828 1832 1...

National Paralympic Committee of Iran IR Iran National Paralympic CommitteeLogoNational Paralympic CommitteeCountry IranCodeIRICreated5 February 2001HeadquartersTehran Province, Northern, Q9JV+JV4 District 3, Tehran, Ayatollah Hashemi Rafsanjani Highway, Seoul StPresidentGhafour Karegari[1]Websitewww.paralympic.ir/en/home The Paralympic Committee of Iran is the body responsible for selecting athletes to represent Iran at the Paralympic Games and other international athletic meets...

Traditional Balinese music, Indonesia Balinese traditional musical instrument. Various hanging Gongs (gong ageng, gong suwukan, kempul) of Gamelan in Indonesia Music of Indonesia Genres Classical Kecapi suling Tembang sunda Kecak Pop Indo Hip hop Dangdut Campursari Kroncong Langgam jawa Celempungan Gambang kromong Tanjidor Gambus Jaipongan Pop Sunda Qasidah modern Rock Tapanuli ogong Specific forms Angklung Beleganjur Calung Degung Gamelan Gambang Gender Wayang Gong gede Gong kebyar Jegog Jog...

World War I treaty between Italy and the Triple Entente Multiple geographical names mentioned below changed in the discussed period. The article uses modern English or local names.Treaty of LondonAgreement between France, Russia, Great Britain and Italy. Signed at London April 26, 1915.TypeMultilateral treatyContextEntry of Italy into World War ISigned26 April 1915 (1915-04-26)LocationLondon, England, United KingdomNegotiators H. H. Asquith Edward Grey Théophile Delcassé Anto...

Діти кукурудзи 2: Остання жертваангл. Children of the Corn: The Final Sacrifice Жанр фільм жахівРежисер Девід ПрайсПродюсер Скотт А. СтоунДевід Г. СтенліСценарист Гілберт АдлерУ головних ролях Райн БоллманТеренс НоксОператор Леві ІсааксКомпозитор Деніел ЛіхтМонтаж Баррі ЗетлінКінокомп...

Defunct Disney subsidiary This article relies excessively on references to primary sources. Please improve this article by adding secondary or tertiary sources. Find sources: Disney English – news · newspapers · books · scholar · JSTOR (March 2015) (Learn how and when to remove this template message) Disney EnglishTypeSubsidiaryIndustryEducationalFoundedOctober 2008DefunctJune 22, 2020 (2020-06-22)HeadquartersShanghai, China & Glenda...

Disused railway station in Lancashire, England NewsholmeStation house and railway bridge (2012)General informationLocationNewsholme, Ribble Valley, LancashireEnglandPlatforms2Other informationStatusDisusedHistoryPre-groupingLancashire and Yorkshire RailwayPost-groupingLondon, Midland and Scottish RailwayKey dates1880Opened1957Closed to passengers Newsholme railway station was a railway station that served the small village of Newsholme in Lancashire. It was built by the Lancashire and Yorkshi...