Search:

Type: Posts; User: geo_c

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    4,068

    local and global variables???

    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
  2. Replies
    7
    Views
    2,465

    Thanks to all for the ideas! geo_c

    Thanks to all for the ideas!
    geo_c
  3. Replies
    7
    Views
    2,465

    help with counting words

    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...
  4. Thread: array question

    by geo_c
    Replies
    7
    Views
    1,196

    array question

    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,...
  5. Replies
    15
    Views
    4,457

    Yes, I said the right track. for (stop_ch =...

    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);
    }
    ...
  6. Replies
    15
    Views
    4,457

    Thanks to all for all the suggestions! You have...

    Thanks to all for all the suggestions! You have put me on the right track. Much appreciated.

    Geo.
  7. Replies
    15
    Views
    4,457

    help with nested loops

    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:
Results 1 to 7 of 7