Give the declaration for a string called student, which holds up to 50 characters. Show two ways to initialize the string in the declaration.
Answers
Answered by
10
It can be declared in many ways some of the best and easy way is
1. Char student [] = “ abcd……. 50 char” .In this u can write how many characters you want to write.
2. Char student [50] = “ abcd……. 50 char” .In this, u can write up to 50 characters to write.
Similar questions