<>
is incorrect. While this operator is correctly interpreted as "not equal to
" in writing conditional statements, it is not the proper operator to be used in C programming. Instead, the operator !=
must be used to indicate "not equal to
" condition. #
symbol. \n
character. This is used to insert a new line when displaying data in the output screen. More spaces can be added by inserting more \n
characters. For example, \n\n
would insert two spaces. A newline escape sequence can be placed before the actual output expression or after. Toupper()
function prototype is declared in <ctype.h>
. Note that this function will only convert a single character, and not an entire string. tic-tac-toe
program. If (num>=0)
printf("number is positive");
else
printf ("number is negative");