Thread: printf question

  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    1

    Post printf question

    char t;
    scanf("%*c%c",&t);


    can anyone tell me anything about this scanf?...i've seen it in a problem and just can't understand it...
    ty

  2. #2
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    I don't see any issues off-hand. Are you aware that %*c suppresses character conversion? Essentially you're going to skip one character and assign another to t.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with a C Programing Quiz project
    By dilemma in forum C Programming
    Replies: 12
    Last Post: 05-15-2009, 03:35 PM
  2. IF CONDITION plese help
    By birumut in forum C Programming
    Replies: 12
    Last Post: 03-06-2009, 09:48 PM
  3. I have some questions :(
    By geekrockergal in forum C Programming
    Replies: 19
    Last Post: 02-01-2009, 09:44 AM
  4. saying hello and 1st question
    By darksys in forum C Programming
    Replies: 12
    Last Post: 10-31-2008, 02:58 PM
  5. fgets question
    By Ash1981 in forum C Programming
    Replies: 12
    Last Post: 01-12-2006, 09:53 AM