Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- // Array inicialisation
- int arr[] = {14,2,3,4,5,6,7,8, 9};
- // Output every element of array with index "e"
- // Index "e" starts from 1 and increases by 2 on each iteration
- for(int e=1; e<sizeof(arr)/sizeof(arr[0]); e+=2){
- printf("%d \n", arr[e]);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement