8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes :: Forums :: Discuss and Learn :: 8051 Discussion Forum
 
<< Previous thread | Next thread >>
What does adding a "u" to a hexadecimal number do?
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
Todor
Fri Jun 27 2008, 12:18AM
 User Offline
Registered Member #7749
Joined: Fri May 09 2008, 11:16PM

Posts: 1
Thanked 0 times in 0 post
Hi, everyone! I'm new in this forum, so if my thread is in the wrong place, please move it.
I'm looking at a C source code for a C8051F124(8051 based), and I've found the following definition "#define ARP_OPERATION_REQ 0x01u". My question is, what does the "u" letter do with the constant value?

P.S. I suppose, that it have something to do with a little-endian - big-endian compatibility, but I'm not sure.

Thanks in advantage!

Back to top


sashijoseph
Sat Jun 28 2008, 05:37AM

 User Offline
Registered Member #5870
Joined: Mon Feb 04 2008, 06:26PM

Posts: 496
Thanked 112 times in 105 posts
I think it forces the value to be an unsigned type...

Let there be music........
Back to top


 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems