To write statement hi world:
-
puts('hi world');
-
puts("hi world");
-
Both correct
-
Both wrong
B
Correct answer
Explanation
The puts() function expects a pointer to a string (char *). Option A uses single quotes, which denote a single character (integer literal), causing a type mismatch or error. Option B correctly uses double quotes for a string literal.