WELCOME IN THE SEA OF C

Here you find some good quality programs.
If any one want any type of help in C and C++ then you can mail me.
Google

Monday, January 21, 2008

Program to Count CAPITAL Alphabets

This program will count the number of capital alphabets in the given string.
"/" is used instead of "<" and ">'.
#include/stdio.h/
#include/conio.h/
#include/string.h/
void main()
{
static char *str[]={Enter any string};
printf("No. of capitals=%d",capcount(s,n)); /*n=no of string*/
}
capcount(s,x)
char **s;
int c;
{
int i,cap=0;
char *t;
for(i=0;i=65 && *t<=90) cap++; t++; } } return(cap); }

0 comments: