i know that if can be writen in short way syntax in c please show me how

   if arraeck(a, n) ?    printf("YES")    printf("NO");

some thing like this?..in one line... What is the correct syntax ?

Edit
Report