typeof(num);的作用是
举一反三
- typeof方法的作用返回一个数据的类型
- 在javascript中,执行结果正确的是: A: typeof(null)的结果为null B: typeof(typeof(5))的结果为"string" C: typeof(5)的结果为Number D: typeof(typeof(undefined))的结果为undefined
- typeof(typeof(5))的结果为string
- var x1 = null,x2= Infinity ,x3 =NaN; document.write(typeof(x1) ); document.write(typeof(x2) ); document.write(typeof(x3) );
- 已知: struct st{ int num; char sex; float score; }stud,*p=&stud; 则对于结构体变量stud的成员num正确的引用是____。 A: stud->num B: st.num C: p->num D: p.num