GATE 2026 set1 Computer Science and Information Technology question: Consider the following C statements: code Which of the following options is/are correct?
Consider the following C statements:
char *str1 = "Hello; /* Statement S1 */
char *str2 = "Hello;"; /* Statement S2 */
int *str3 = "Hello"; /* Statement S3 */
Which of the following options is/are correct?
Show answer
Official answer: C