To initialize a char variable we use this expression: char name = 's'; In this case we'll get a variable name, which contains symbol 's' as a value. We can use any name we want for a variable, it is only not allowed to use number as a first symbol. For example, we can't initialize or declare a variable named& 4var. To initialize an array of char we use this expression: char* name = 'kuldeep'; In this case we create a pointer to the first symbol and variable name contains the word 'kuldeep'.
Comments
Leave a comment