Thread: ascii

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    30

    ascii

    Write a program to read a character and print it in reverse case.

    Do we have to use ascii code in this question? is there another way of doing it without using ascii?

  2. #2
    Registered User
    Join Date
    Jul 2003
    Posts
    30
    i've seen in a FAQ, they've used toupper to do it. i don't want to use toupper. i just want a simple way to do it. thx
    Last edited by nightingale; 07-25-2003 at 11:36 AM.

  3. #3
    Registered User
    Join Date
    Jul 2003
    Posts
    30
    Can't understand


    How much simpler than toupper() do you want?
    Besides, quick math tricks assume that ASCII is your character set.

    i don't wanna use toupper coz i haven't used it before n hence i should not/ can't use it.
    Last edited by nightingale; 07-25-2003 at 11:36 AM.

  4. #4
    Registered User
    Join Date
    Jun 2003
    Posts
    124
    If you don't want to use toupper(), work with the integral value of each character.
    Loading.....
    ( Trying to be a good C Programmer )

  5. #5
    Registered User
    Join Date
    Jul 2003
    Posts
    30
    thx a lot to all of u for ur help

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. ASCII character with ASCII value 0 and 32
    By hitesh_best in forum C Programming
    Replies: 4
    Last Post: 07-24-2007, 09:45 AM
  2. Replies: 11
    Last Post: 03-24-2006, 11:26 AM
  3. Office access in C/C++ NOT VC++!! :)
    By skawky in forum C++ Programming
    Replies: 1
    Last Post: 05-26-2005, 01:43 PM
  4. ascii values for keys
    By acid45 in forum C Programming
    Replies: 2
    Last Post: 05-12-2003, 07:13 AM
  5. Checking ascii values of char input
    By yank in forum C Programming
    Replies: 2
    Last Post: 04-29-2003, 07:49 AM