Thread: Remove uppercase case letters from a word

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User Sid_TheBeginner's Avatar
    Join Date
    Jun 2012
    Location
    India
    Posts
    19

    Exclamation Remove uppercase case letters from a word

    Here's my code. Please help.
    Thanks in advance.

    Code:
    #include<stdio.h>
    
    
    int main(void)
    {
        char abc[] = {"MmyNnameIisMmonk"};
        char *ptr = abc;
        int i = 0;
    
    
        for(i = 0; i < (sizeof(abc) / sizeof(char)); i++) {
            if(abc >= 'A' || abc <= 'Z') {
                ptr++;
                printf("%c ", ptr[i]);
            }
        }
        
    }
    Last edited by Sid_TheBeginner; 10-25-2012 at 10:35 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. out putting upper case letters
    By brillpsycho in forum C++ Programming
    Replies: 3
    Last Post: 10-10-2012, 05:06 PM
  2. Compare two string and remove common letters
    By NiLe in forum C Programming
    Replies: 4
    Last Post: 06-02-2012, 01:23 PM
  3. Find word with uppercase and lowercase letters
    By doia in forum C Programming
    Replies: 9
    Last Post: 07-15-2010, 08:51 PM
  4. Counting uppercase and lowercase letters in a text
    By Tintu in forum C Programming
    Replies: 2
    Last Post: 02-06-2008, 10:15 PM
  5. Remove upper case letters from a char string
    By lavinpj1 in forum C Programming
    Replies: 8
    Last Post: 05-01-2006, 12:09 PM