Strings Operations in Data Structures (C)
Length of string #include <stdio.h> int main() { char s[] = “Dhiraj”; int i=0; while(s[i] != ”) { i++; } printf(“length of string is %d”, i); return 0; } Changing Case #include <stdio.h> int main() { char s[] = “dhiraj”; int i=0; while(s[i] != ”) { if(s[i] >= 65 && s[i] <=90) s[i] = … Read more