#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Location
    Dhaka, Bangladesh
    Posts
    116
    Rep Power
    2

    Question How to convert elements of an array to upper-case


    I am trying to convert the lower-case letters inside an array into upper-case letters. How do I do it?
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,643
    Rep Power
    4247
    1. #include <ctype.h>
    2. Walk through the array elements in a for loop
    3. Call toupper() on every element of the array.

    Comments on this post

    • arman.khandaker agrees
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Location
    Dhaka, Bangladesh
    Posts
    116
    Rep Power
    2
    Originally Posted by Scorpions4ever
    1. #include <ctype.h>
    2. Walk through the array elements in a for loop
    3. Call toupper() on every element of the array.
    Wow it worked perfectly! Thanks a lot sir! :)

IMN logo majestic logo threadwatch logo seochat tools logo