Thx. I looked it up in a book.
BTW: Instead of using a vector: int a[100] you could use:
int *a;
a=(int*)malloc(100*sizeof(int)); OR
a=(int*)calloc(100,sizeof(int));
It's kind of useful. If you wanna read a vector of an undefined size (n), you have to aproximate and think within which intervals it is. If you use:
int n;
//reads the size
printf("n=");
scanf("%i",&n);
int *a=(int*)malloc(n*sizeof(int));
It's especially useful when you don't what to use up more memory than required! :D