Answers for "c++ sum of ascii string"

C
-1

c++ sum of ascii string

char str1[50]
//scanf("%s",str1);
int sum_of_ascii = 0;
for(int i = 0; i!= '\0'; i++){
	sum_of_ascii += str1[i];
}
Posted by: Guest on April-19-2022

Code answers related to "C"

Browse Popular Code Answers by Language