Write a C program to print all negative elements in an array