Learn C language

xiaoxiao2021-03-05  24

(1) The RETURN statement that appears in the function body allows the program to launch a function body, the following code examples:

#include "stdio.h"

int main ()

{Int INTCOUNTER_1, INTCOUNTER_2;

INTCOUNTER_2 = 3;

For (intcounter_1 <= 10; intcounter_1 ) {printf ("before if in for / n"); if (intcounter_1 == intcounter_2) {printf ("Counter1 Now Eaquls to Counter2 / N); Return 0; } Printf ("after if in for / n");}

Printf ("after for in main / n");

Printf ("INTCOUNTER_1 =% D / N", INTCOUNTER_1); RETURN 0;}

转载请注明原文地址:https://www.9cbs.com/read-35677.html

New Post(0)