C Programming

NULL OR EMPTY STATEMENTS
These are statements which do not have any body associated with them.


	/* sums all integers in array a containing n elements and initializes */
	/* two variables at the start of the for loop */
	for( sum = 0, i = 0; i < n; sum += a[i++] )
		;

/* Copies characters from standard input to standard output until EOF is reached  */
	for( ; (c = getchar ()) != EOF; putchar (c))
		;


 ©Copyright B Brown. 1984-1999. All rights reserved.