answersLogoWhite

0


Best Answer

#include <stdio.h>

#include <ctype.h>

...

int caps = 0;

int c;

file = fopen ("InputFile", "r");

while ((c = fgetc (file)) != EOF) {

if (isupper (c)) ++caps;

}

fclose(file);

...

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you read the number of capital letters in a input file using c language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

An assembly language program that will take three decimal input and display minimum of them?

program that take three decimal number as input and find the largest among them in assembly language


What is the input for aftermath in how to win Final Fantasy Sonic X5?

the answer for "aftermatch'' is "VICTORY'' and for "fallen heroes'' is "PAIN'' don't use CAPITAL LETTERS when you enter the passwords, by axelstone


What is a Photoshop cs5 serial number?

It is a unique string of letters and numbers that you have to input in order to install the progarm. You have to pay money for this.


What is the keyboard's output and input?

The input would be you pressing the keys and the output would be the letters on the screen?


What is the definition of input number?

The definiton of input number is the number going in. The input number is the oppsite of the output number. For instance:Input Output1 52 103 154 205 25The rule of the input and output number is input times five equals output.


Letters and numbers you input?

PLease be more specific.


Write a program that converts a string from small letters to capital letters and vice versa?

Here's a Python program that accomplishes this: def convert_case(input_str): return input_str.swapcase() user_input = input(&quot;Enter a string: &quot;) converted_str = convert_case(user_input) print(&quot;Converted string:&quot;, converted_str)


Is this how you spell input or is this how you spell inpute?

The correct spelling is &quot;input.&quot; &quot;Inpute&quot; is not a word in the English language.


What is the standard input of BLISS language?

essex


Why do a computer have a keyboard?

Well, They Have One To Input Letters into the System


When you input to the computer anything than what is the computer processing?

When you input something, you are doing it in English or french or any preferred language but the computer just understands binary language. So, when we input something the computer is processing that piece of instruction into binary language and after that is sending you the output.


Why is a keyboard a input?

because when you type on the keyboard it inputs the letters/words on the computer, so there connected making them input devices.