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