There are five primary fundamental data types, ‘C’ provides various data types to make it easy for a programmer to select a suitable data type as per the requirements of an application. ‘C’ is a case sensitive language that means a variable named ‘age’ and ‘AGE’ are different.įollowing are the examples of valid variable names in a ‘C’ program: height or HEIGHTįollowing are the examples of invalid variable names in a ‘C’ program: 1heightįor example, we declare an integer variable my_variable and assign it the value 48:īy the way, we can both declare and initialize (assign an initial value) a variable in a single statement: int my_variable = 48 Data types.A variable name should not consist of a keyword.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |