Monday, 5 September 2016

CONSTANTS AND LITERALS in C Programming

 CONSTANTS AND LITERALS

Constants  refer  to  fixed  values  that  the  program  may  not  alter  during  its execution. These fixed values are also called literals.

Character  literals  are  enclosed  in  single  quotes,  e.g.,  'x'  can  be  stored  in  a
simple variable of char type.

 Example:-



No comments:

Post a Comment