What is %XR

What is %XR

Page 1 of 1

7 Replies - 1906 Views - Last Post: 10 May 2006 - 10:15 AM Rate Topic: -----

#1 im@geek  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 94
  • Joined: 18-February 05

What is %XR

Posted 09 May 2006 - 12:53 AM

When I use

printf("I'm a %XR",195936478);

I get

I'm a BADC0DER

What is %XR and how it it used
Is This A Good Question/Topic? 0
  • +

Replies To: What is %XR

#2 poke_blade  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 21
  • Joined: 26-February 06

Re: What is %XR

Posted 09 May 2006 - 04:54 AM

ok......
%x is a format specifier......It tells the compiler that to print the given number in hexadecimal digit........
like.......
printf("%x",10);
would print A
195936478 is the decimal representation of the hexa number BADCODE,
R is used to add R at the end of it..........
Was This Post Helpful? 1

#3 Mrafcho001  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 41
  • View blog
  • Posts: 769
  • Joined: 01-November 05

Re: What is %XR

Posted 09 May 2006 - 01:18 PM

you got that from born2code's avatar? lol i was just looking at it and wodering a few days ago.
Was This Post Helpful? 0
  • +
  • -

#4 William_Wilson  Icon User is offline

  • lost in compilation
  • member icon

Reputation: 205
  • View blog
  • Posts: 4,807
  • Joined: 23-December 05

Re: What is %XR

Posted 09 May 2006 - 10:04 PM

It's actually quite genius, as it is a contridiction to itself, and a credit to born2code. The thought impressed me a little i must admit when i figured it out :)

This post has been edited by William_Wilson: 09 May 2006 - 10:05 PM

Was This Post Helpful? 0
  • +
  • -

#5 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 180
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

Re: What is %XR

Posted 09 May 2006 - 11:43 PM

Well I'm glad at least William_Wilson deciphered it correctly.
Was This Post Helpful? 0
  • +
  • -

#6 im@geek  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 94
  • Joined: 18-February 05

Re: What is %XR

Posted 10 May 2006 - 02:08 AM

I figurewd it out.... eventually B). I know what %x was it was the R that throw me.
Was This Post Helpful? 0
  • +
  • -

#7 frog  Icon User is offline

  • unleashed
  • member icon

Reputation: 2
  • View blog
  • Posts: 683
  • Joined: 26-March 06

Re: What is %XR

Posted 10 May 2006 - 04:05 AM

hey so you entred a code snippet
basic exmple of %XR

i think you should have given some credit to born2code over here.it was his idea afterall

This post has been edited by frog: 10 May 2006 - 09:11 PM

Was This Post Helpful? 0
  • +
  • -

#8 William_Wilson  Icon User is offline

  • lost in compilation
  • member icon

Reputation: 205
  • View blog
  • Posts: 4,807
  • Joined: 23-December 05

Re: What is %XR

Posted 10 May 2006 - 10:15 AM

i agree, the proper title should be:
'basic example of %X'
as well, not %XR
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1