1.
Which variables below is declared as a
string
type?
int main() {
int x = 0;
double y = 4.5;
string word = "hello";
string letter = "a";
char c = 'c';
bool isPrime = 1;
}
x
x
is anint
.y
y
is adouble
.word
word
is astring
."hello"
- “hello” is not a variable.
letter
letter
is astring
.c
c
is achar
.isPrime
isPrime
is abool
.