The initialization of the strings can be done in _____ different ways. Fill in the blank.
Answers
Answered by
4
two different ways.
Answered by
0
Answer:
The different ways of initialising a string are as follows:
1.) Using pointer: Using the pointer to declare a string is one of the most important features of modern programming languages. It is effective, efficient and easy to understand.
2.) Using strcpy function: Using strcpy function to declare a sting is mainly done in C language. In this case, we use the library function.
3.) Using gets() function: this includes storing and declaration of a string as well as white spaces.
Similar questions