printf question

This is a discussion on printf question within the C Programming forums, part of the General Programming Boards category; 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 ...

  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
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,525
    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, 08:48 PM
  3. I have some questions :(
    By geekrockergal in forum C Programming
    Replies: 19
    Last Post: 02-01-2009, 08: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, 08:53 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21