How i can find the size of array?! for example i have the program below and i want to replace the number 4 with the array size! thanks 4 any help!
Code:#include <stdio.h> int main () { char str []="MORAL"; int i, j; puts ("\n"); for (i=0; i <= 4; i++) { for (j=i+1; j <= 4; j++) printf ("{%c, %c}\n",str[i],str[j]); } return 0; }