Add

Friday, November 16, 2018

string and constants

string

•String is combination of characters.
•Syntax:
•Char string_name[]= “value”;

constants

•Constants are values which cannot be changed in the program.

•For example we know that value of pi is 3.14 always.
•So whenever we define pi, we define it as constant so that nobody can change its value even by mistake.

No comments:

Post a Comment