[ create a new paste ] login | about

Link: http://codepad.org/Z4jE3VaW    [ raw code | output | fork ]

C, pasted on Jul 10:
1
2
3
4
5
6
7
#include<stdio.h>
int main(){
 int array[5] = {1, 0, 1, 0, 0}, i;	
 for(i=sizeof(array)/sizeof(int); array[i]!=1 && --i;); 
 printf("fount at %d\n", i);
 return 1;
}


Output:
1
fount at 2


Create a new paste based on this one


Comments: