You are not logged in. Please login at 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

accept rate: 11%

toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 24 Jul '18, 05:29

question was seen: 51 times

last updated: 24 Jul '18, 05:29