আমার কোড

#include<stdio.h>
int main(void)
{
    signed int a;

     a = -33769;

     printf("%d",a);

    return 0;
}

signed int data typer range -32768 থেকে 32767. এই হিসেবে underflow হওয়ার কথা। কিন্তু ans তো -33769(correct) print করছে।

asked 07 May '16, 04:15

SadhonRay's gravatar image

SadhonRay
581110

edited 07 May '16, 09:14

Kaiser%20Ahmed's gravatar image

Kaiser Ahmed
3.2k1622


আপনি যেটি ব্যবহার করেছেন সেটি ৩২ বিট signed integer যার range - 2,147,483,647 থেকে 2,147,483,647 তাই সঠিক দেখাচ্ছে।

permanent link

answered 07 May '16, 05:38

Shadab420's gravatar image

Shadab420
476

Your answer
toggle 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

Question tags:

×402
×15
×2
×1

question asked: 07 May '16, 04:15

question was seen: 892 times

last updated: 07 May '16, 09:14