Infomax Computer Academy
Report Bug
Qus : Which of the following is the correct way to initialize a string in C?
QusWhich of the following is the correct way to initialize a string in C?
A. char str[] = "Hello";
B. char str = "Hello";
C. string str = "Hello";
D. char str[] = {'H', 'e', 'l', 'l', 'o'};
Solution
A. char str[] = "Hello";
Report Bug
Select Reason
Wrong Question
Wrong Translation
Out of Topic
Wrong Answer
Question and Option not visible
Formatting Issues
Hindi Version Not Available
Explanation Required
Others