string s = ‘Hello’;char c = s[1] // initialized to e ‘e’ ‘ ‘ ‘\t‘ --> tab char‘\n’ new line ‘\’’ ‘\\’ if (t[K] == ‘E’ || ‘e’) //Wrong! But will compile and do the wrong thingchar c = “x”; //ERRORstring c = ‘x’; //ERROR#include <cctype>if (isdigit(num[k]))numberofDigits++;islower(ch)isupper(ch)isalpha(ch) ‘A’ ‘z’if (! isdigit(num[k])) //if num[k] is NOT a digitvoid greet(){ for (int k =1 ; k <=; k++)cout << “Hello” <<end1;}int main(){….…..greet()….}void greet(int nTimes, string msg){for (int k = 1; k <=nTimes; k++)cout << msg << endl;}int main(){……greet(3, “Hello”); ….int a = 4greet(a + 3, “Ni
View Full Document