Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

C Exercise 90

C Exercise 90

100 Classic C Language Examples 100 Classic C Language Examples

**Problem:** A college-upgrading exam question; read the result.

**Analysis:** None.

Program source code:



//  Created by www.runoob.com on 15/11/9.

//  Copyright © 2015 Runoob Tutorial. All rights reserved.

//



#include

#include



#define M 5

int main()

{

    int a[M]={1,2,3,4,5};

    int i,j,t;

    i=0;j=M-1;

    while(i

The above example produces the following output:



5

4

3

2

1

100 Classic C Language Examples 100 Classic Examples in C Language