Thread: a question, help please

  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    1

    a question, help please

    hello,

    I am new in C and have one question:
    1ul<<7
    what does ul mean here?

    i can understand 1<<7, but can't find explanation on 1ul<<7


    thank you

  2. #2
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,909
    Unsigned long. It still has a value of 1, it just tells the compiler to treat it like an unsigned long instead of, say, a signed int or a long long or whatever. Take a look here for a description of integer literal suffixes.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question bout my work
    By SirTalksAlots in forum C Programming
    Replies: 4
    Last Post: 07-18-2010, 03:23 PM
  2. A question about a question
    By hausburn in forum C++ Programming
    Replies: 3
    Last Post: 04-25-2010, 05:24 AM
  3. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 02:51 PM
  4. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  5. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM

Tags for this Thread