I have been doing some reading and am having trouble understanding local and global varialbes. What is the difference and when should I use each?
Thanks is advance for the guidence.
geo_c
Type: Posts; User: geo_c
I have been doing some reading and am having trouble understanding local and global varialbes. What is the difference and when should I use each?
Thanks is advance for the guidence.
geo_c
Thanks to all for the ideas!
geo_c
I have written the following code to count the number of words, uppercase/lowercase letters, punctuation, and digits. The only problem I am having is counting the last word. Any suggestions? Do I...
I am trying to figure out why this array assignment is invalid. Can someone please explain it to me? :confused:
#include <stdio.h>
#define SIZE 5
int main(void)
{
int win[SIZE] = {5,...
Yes, I said the right track.
for (stop_ch = 'E'; stop_ch >= 'A'; stop_ch--)
{
for (ch='A'; ch<=stop_ch; ch++)
{
printf("%c", ch);
}
...
Thanks to all for all the suggestions! You have put me on the right track. Much appreciated.
Geo.
Hello, I am new to c programming and am trying to write a simple program to get the following output:
ABCDE
ABCD
ABC
AB
A
The code I have written gives me an output of: