Which of the following is NOT a valid data type in C ?

2024

Which of the following is NOT a valid data type in C ?

  1. A.

    int

  2. B.

    float

  3. C.

    string

  4. D.

    char

Attempted by 422 students.

Show answer & explanation

Correct answer: C

In C, there is no built-in string data type. Strings are typically represented as arrays of characters (char[]) or pointers to characters (char*).

Explore the full course: Tpsc Assistant Technical Officer