Re: Can someone please verify the execution trace of this?

Liste des GroupesRevenir à cl c++ 
Sujet : Re: Can someone please verify the execution trace of this?
De : eesnimi (at) *nospam* osa.pri.ee (Paavo Helde)
Groupes : comp.lang.c comp.lang.c++
Date : 20. May 2024, 17:05:28
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v2foro$1mb8$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Mozilla Thunderbird
On 20.05.2024 17:51, olcott wrote:

 int factorial(int n)
{
   if (n >= 1)
     return n*factorial(n-1);
   else
     return 1;
}
This one is tricky. Depending on the parameter value, implementation capabilities and the optimizer quality it may either calculate something (which would even be the correct factorial value, for sufficiently small arguments) or cause an integer overflow or a stack overflow. These may or may not terminate the program, depending on the compiler, runtime environment and OS details.

Date Sujet#  Auteur
18 May 24 * Can someone please verify the execution trace of this?136olcott
19 May 24 +- Re: Can someone please verify the execution trace of this?1Richard Damon
19 May 24 +* Re: Can someone please verify the execution trace of this?3Sam
19 May 24 i`* Re: Can someone please verify the execution trace of this?2olcott
19 May 24 i `- Re: Can someone please verify the execution trace of this?1jak
19 May 24 +* Re: Can someone please verify the execution trace of this?128Bonita Montero
19 May 24 i`* Re: Can someone please verify the execution trace of this?127olcott
19 May 24 i +- Re: Can someone please verify the execution trace of this?1Richard Damon
20 May 24 i `* Re: Can someone please verify the execution trace of this?125Bonita Montero
20 May 24 i  `* Re: Can someone please verify the execution trace of this?124olcott
20 May 24 i   +* Re: Can someone please verify the execution trace of this?54Bonita Montero
20 May 24 i   i`* Re: Can someone please verify the execution trace of this?53olcott
20 May 24 i   i +* Re: Can someone please verify the execution trace of this?44Bonita Montero
20 May 24 i   i i`* Re: Can someone please verify the execution trace of this?43olcott
20 May 24 i   i i `* Re: Can someone please verify the execution trace of this?42Bonita Montero
20 May 24 i   i i  `* Re: Can someone please verify the execution trace of this?41olcott
20 May 24 i   i i   `* Re: Can someone please verify the execution trace of this?40Bonita Montero
20 May 24 i   i i    `* Re: Can someone please verify the execution trace of this?39olcott
20 May 24 i   i i     +* Re: Can someone please verify the execution trace of this?2Richard Harnden
20 May 24 i   i i     i`- Re: Can someone please verify the execution trace of this?1olcott
20 May 24 i   i i     `* Re: Can someone please verify the execution trace of this?36Chris M. Thomasson
20 May 24 i   i i      `* Re: Can someone please verify the execution trace of this?35olcott
20 May 24 i   i i       `* Re: Can someone please verify the execution trace of this?34Chris M. Thomasson
20 May 24 i   i i        +* Re: Can someone please verify the execution trace of this?13olcott
20 May 24 i   i i        i`* Re: Can someone please verify the execution trace of this?12Chris M. Thomasson
20 May 24 i   i i        i `* Re: Can someone please verify the execution trace of this?11olcott
20 May 24 i   i i        i  +- Re: Can someone please verify the execution trace of this?1Chris M. Thomasson
20 May 24 i   i i        i  +* Re: Can someone please verify the execution trace of this?3Chris M. Thomasson
20 May 24 i   i i        i  i`* Re: Can someone please verify the execution trace of this?2olcott
20 May 24 i   i i        i  i `- Re: Can someone please verify the execution trace of this?1Chris M. Thomasson
20 May 24 i   i i        i  `* Re: Can someone please verify the execution trace of this?6Chris M. Thomasson
20 May 24 i   i i        i   `* Re: Can someone please verify the execution trace of this?5olcott
20 May 24 i   i i        i    `* Re: Can someone please verify the execution trace of this?4Chris M. Thomasson
20 May 24 i   i i        i     `* Re: Can someone please verify the execution trace of this?3olcott
20 May 24 i   i i        i      `* Re: Can someone please verify the execution trace of this?2Chris M. Thomasson
20 May 24 i   i i        i       `- Re: Can someone please verify the execution trace of this?1Chris M. Thomasson
20 May 24 i   i i        `* Re: Can someone please verify the execution trace of this?20Chris M. Thomasson
20 May 24 i   i i         `* Re: Can someone please verify the execution trace of this?19olcott
20 May 24 i   i i          `* Re: Can someone please verify the execution trace of this?18Chris M. Thomasson
20 May 24 i   i i           `* Re: Can someone please verify the execution trace of this?17olcott
20 May 24 i   i i            `* Re: Can someone please verify the execution trace of this?16Chris M. Thomasson
20 May 24 i   i i             `* Re: Can someone please verify the execution trace of this?15olcott
20 May 24 i   i i              `* Re: Can someone please verify the execution trace of this?14Chris M. Thomasson
20 May 24 i   i i               `* Re: Can someone please verify the execution trace of this?13olcott
20 May 24 i   i i                `* Re: Can someone please verify the execution trace of this?12Chris M. Thomasson
20 May 24 i   i i                 +- Re: Can someone please verify the execution trace of this?1Chris M. Thomasson
20 May 24 i   i i                 `* Re: Can someone please verify the execution trace of this?10olcott
20 May 24 i   i i                  `* Re: Can someone please verify the execution trace of this?9Chris M. Thomasson
20 May 24 i   i i                   `* Re: Can someone please verify the execution trace of this?8Chris M. Thomasson
20 May 24 i   i i                    `* Re: Can someone please verify the execution trace of this?7olcott
20 May 24 i   i i                     +* Re: Can someone please verify the execution trace of this?5Chris M. Thomasson
20 May 24 i   i i                     i`* Re: Can someone please verify the execution trace of this?4olcott
20 May 24 i   i i                     i `* Re: Can someone please verify the execution trace of this?3Chris M. Thomasson
20 May 24 i   i i                     i  +- Re: Can someone please verify the execution trace of this?1Chris M. Thomasson
20 May 24 i   i i                     i  `- Re: Can someone please verify the execution trace of this?1olcott
20 May 24 i   i i                     `- Re: Can someone please verify the execution trace of this?1Chris M. Thomasson
20 May 24 i   i `* Re: Can someone please verify the execution trace of this?8Fred. Zwarts
20 May 24 i   i  `* Re: Can someone please verify the execution trace of this?7olcott
20 May 24 i   i   +* Re: Can someone please verify the execution trace of this?2Paavo Helde
20 May 24 i   i   i`- Re: Can someone please verify the execution trace of this?1olcott
20 May 24 i   i   `* Re: Can someone please verify the execution trace of this?4Bonita Montero
20 May 24 i   i    `* Re: Can someone please verify the execution trace of this?3olcott
21 May 24 i   i     `* Re: Can someone please verify the execution trace of this?2Fred. Zwarts
21 May 24 i   i      `- Re: Can someone please verify the execution trace of this?1olcott
20 May 24 i   +* Re: Can someone please verify the execution trace of this?37wij
20 May 24 i   i+* Re: Can someone please verify the execution trace of this?5olcott
20 May 24 i   ii`* Re: Can someone please verify the execution trace of this?4wij
20 May 24 i   ii `* Re: Can someone please verify the execution trace of this?3olcott
20 May 24 i   ii  `* Re: Can someone please verify the execution trace of this?2wij
20 May 24 i   ii   `- Re: Can someone please verify the execution trace of this?1olcott
21 May 24 i   i`* Re: Can someone please verify the execution trace of this?31Keith Thompson
21 May 24 i   i +- Re: Can someone please verify the execution trace of this?1Keith Thompson
21 May 24 i   i `* Re: Can someone please verify the execution trace of this?29olcott
21 May 24 i   i  +- Re: Can someone please verify the execution trace of this?1Fred. Zwarts
21 May 24 i   i  `* Re: Can someone please verify the execution trace of this?27Janis Papanagnou
21 May 24 i   i   `* Re: Can someone please verify the execution trace of this?26olcott
21 May 24 i   i    `* Re: Can someone please verify the execution trace of this?25Bonita Montero
21 May 24 i   i     `* Can D correctly simulated by H reach its own line 06 and halt?24olcott
21 May 24 i   i      `* Re: Can D correctly simulated by H reach its own line 06 and halt?23Bonita Montero
21 May 24 i   i       `* Re: Can D correctly simulated by H reach its own line 06 and halt?22olcott
21 May 24 i   i        `* Re: Can D correctly simulated by H reach its own line 06 and halt?21Bonita Montero
21 May 24 i   i         `* Re: Can D correctly simulated by H reach its own line 06 and halt?20olcott
21 May 24 i   i          `* Re: Can D correctly simulated by H reach its own line 06 and halt?19Bonita Montero
21 May 24 i   i           `* Re: Can D correctly simulated by H reach its own line 06 and halt?18olcott
22 May 24 i   i            +* Re: Can D correctly simulated by H reach its own line 06 and halt?7Bonita Montero
22 May 24 i   i            i`* Re: Can D correctly simulated by H reach its own line 06 and halt?6olcott
22 May 24 i   i            i `* Re: Can D correctly simulated by H reach its own line 06 and halt?5Bonita Montero
22 May 24 i   i            i  `* Re: Can D correctly simulated by H reach its own line 06 and halt?4olcott
22 May 24 i   i            i   `* Re: Can D correctly simulated by H reach its own line 06 and halt?3Bonita Montero
22 May 24 i   i            i    `* Re: Can D correctly simulated by H reach its own line 06 and halt?2olcott
22 May 24 i   i            i     `- Re: Can D correctly simulated by H reach its own line 06 and halt?1Bonita Montero
22 May 24 i   i            `* D correctly simulated by H remains stuck in recursive simulation10olcott
22 May 24 i   i             +* Re: D correctly simulated by H remains stuck in recursive simulation8wij
22 May 24 i   i             i+* Re: D correctly simulated by H remains stuck in recursive simulation [good attempt]3olcott
22 May 24 i   i             ii`* Re: D correctly simulated by H remains stuck in recursive simulation [good attempt]2olcott
22 May 24 i   i             ii `- Re: D correctly simulated by H remains stuck in recursive simulation [good attempt]1wij
22 May 24 i   i             i`* Re: D correctly simulated by H remains stuck in recursive simulation4olcott
23 May 24 i   i             i `* Re: D correctly simulated by H remains stuck in recursive simulation3Chris M. Thomasson
23 May 24 i   i             i  `* Re: D correctly simulated by H remains stuck in recursive simulation2olcott
23 May 24 i   i             i   `- Re: D correctly simulated by H remains stuck in recursive simulation1Chris M. Thomasson
22 May 24 i   i             `- Re: D correctly simulated by H remains stuck in recursive simulation1Fred. Zwarts
21 May 24 i   `* Re: Can someone please verify the execution trace of this?32Sam
20 May 24 `* Re: Can someone please verify the execution trace of this?3Marcel Mueller

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal