Nov. 12th, 2012

wildernesscat: (magician)
What does this program print?
#include <stdio.h>

int main()
{
  int a = -10;
  unsigned int b = 2;

  printf("%d\n", a/b);

  return 0;
}

Counter-intuitive, huh?

Profile

wildernesscat: (Default)
Danny Dorfman

March 2018

S M T W T F S
    123
4 5678910
11121314151617
18192021 222324
25262728293031

Style Credit

Page generated Dec. 14th, 2025 04:06 pm
Powered by Dreamwidth Studios

Expand Cut Tags

No cut tags

Most Popular Tags

Page Summary