How do i find the sum of a string within an array?

post what you have tried to do this first...

Add all the characters?

Add all the characters?

yer adding all the characters to find the total!

i would post wat i have done but i kno it is wrong and i have deleted it over and over again!!!! i have no idea wat i am doing!!

"sum of strings within an array"
i cannot understand this
may be the following will help you..

int arr[10], sum=0;
for(int i=0; i<n(where n is no. of elements in the array); i++)
sum+=arr[i];

Maybe you need to read the post titled Read Me: Read This Before Posting

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.