answersLogoWhite

0


Best Answer

I would use a loop like this:

const char *p= str-1;

size_t count= 0;

while (*++p) if (islower (*p)) ++count;

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How would you write a program that counts the number of lowercase in a character?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

A program c plus plus on automorphic numbers or not?

how to write a program that counts automorphic number from 1 to 999


How do you write 8 characters 1 numerical 1 uppercase number and 1 lowercase number?

ANSWER: Passwo9) The way I figure it, the "lowercase number" is the same as the "numerical" character. The "uppercase number" is the 'shift" any number. So here we have 8 characters and one each of the number types you specified.


Write a program that read phrase and print the number of lower-case letter in it using function of counting?

write a program that reads a phrase and prints the number of lowercase latters in it using a function for counting? in C program


Which passwords parameter is correct?

Passwords can be letters and /or numbers


How do you write a program using function that counts the number of vowels in a string in java language?

Use text-editor notepad++


How long can these questions be?

Exactly 200 characters. ( A character is anything you can type, basically. Every letter in the alphabet, every symbol (,./!@#$%^&*[]{}`~<?>| and others) and number... Even a space, counts as a character. )


What is a number that has 1 number and a mix of uppercase and lowercase letters?

1 as it has everything


How long does it take a computer program to crack a five-character program?

It depends how the characters are encoded. If they are ANSI characters and limited to alphanumeric characters only (uppercase, lowercase and digits) then a 5 character password has (26+26+10)^5=916,132,832 permutations. Knowing the number of permutations and the speed of your computer (how many passwords you can generate and test every second) you should be able to work out how many hours it'll take. As an example, at 1,000 passwords per second it'd take 10.6 days using a 62 character alphabet.


The program will end when a 0 value is read This final value 0 will not participate in the required calculation?

Some people have realised that dividing by zero or 0 will not work. Any program which counts down from a large number to 0 wil stop the program.


What program can be written to count the number of alphanumerics in a string?

public int getStringLength(String val) { return val.length(); } There is an inbuilt functionality in strings that counts the number of alphabets in a string called length()


What is counts in wool?

You may be thinking of counts in yarn, where counts can indicate the number of twists per inch in the spin.


How do you know if its a happy number?

It is not the number, it is how it is applied that counts