Tuesday, June 25, 2019

array test 4 in c language

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int i, arr [8] = {1,2,3,4,5,6,7,8};
    for (i=7;i>=0;i--)
    {
         printf ("%d\t",--arr[--i]);
    }
    return 0;
}

out put:
6      4        2     0

No comments:

Post a Comment

python class topic video