c++ sum of ascii string

[ad_1]

c++ sum of ascii string
char str1[50]
//scanf(
int sum_of_ascii = 0;
for(int i = 0; i!= '\0'; i++){
	sum_of_ascii += str1[i];
}

[ad_2]

Please follow and like us:
Content Protection by DMCA.com