1String.prototype.replaceAt = function (index, char) {
2 return this.substr(0, index) + char + this.substr(index + char.length);
3}
4mystring.replaceAt(4, '')
5
1dataType[] arrayRefVar; // preferred way.
2or
3dataType arrayRefVar[]; // works but not preferred way.
4
1 char s1[] = "Semester 1."; char s2[] = "Semester 2."; if (strncmp(s1, s2, 10) == 0) printf("Equal\n"); else printf("Not equal\n"); }