int getSum(int *P)
{
int X;
int sum;
for (x=0;x%26lt;strlen(p);x++)
{
if (p[x] %26gt; 20)
{
sum = sum + p[x];
}
return sum;
}
}
For more free C/C++ source codes, visit: http://smartcoder.co.nr
KaBalweg
http://smartcoder.co.nr
Subscribe to:
Post Comments (Atom)
Sample C Program To Accept A String & Display Number Of Vowels.
ReplyDeleteSample C Program To Accept A String & Display Number Of Each Vowels.
Sample C Program To Accept A String & Find Out Whether This Character Is Present In The String.
Sample C Program To Find Out The No. Of Times A Character Is Present In The String.
Sample C Program To Understand Working Of Address Concept.
Sample C Program On Use Of Array & Pointer Concept Together.
Sample C Program On Pointers & 2 - Dimensional Array.
Sample C Program On Strings Into Array Of Pointers.
Sample C Program To Accept & Add Ten Numbers Using Pointers.
Sample C Program To Implement Recursive Algorithm Using Pointers.
Sample C Program With Algorithm To Implement Bubble Sort Using Pointers.
Sample C Program To Implement Selection Sort Using Pointers, Arrays & Functions.