You are not logged in. Please login at www.codechef.com to post your questions!

×

Length of integers in C, and input format specifier

In the C standard the number of bits in an 'int' is implementation dependent.

How many bits are there in an 'int' in CodeChef?

If I want a 64-bit integer, do I need to use 'long long'? If so, what is its descriptor in 'scanf'? For example, should I use 'lld' like this? (I don't know how to display '&' without 'amp;' following)

long long i;
scanf("%lld", &i);

asked 24 Jul '18, 05:29

david_s's gravatar image

4★david_s
1111
accept rate: 11%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×1,477
×169

question asked: 24 Jul '18, 05:29

question was seen: 51 times

last updated: 24 Jul '18, 05:29