#include <stdio.h>
#include <conio.h>
int main ()
{
printf ("%d\n",'-'-'-'-'/'/'/');
getch();
}
//Can anyone explain the output of above code
--
GAURAV GUPTA
B.Tech IV Yr. , Department of Computer Science & Engineering
IT BHU , Varanasi
Contacts
Phone No: +91-99569-49491
e-mail :
gaurav...@acm.org
gaurav.gu...@itbhu.ac.in
--
Regards,
Karan
Assuming integer size to be 32 bits, whenever you left or right shift a number with a negative count (except -0 which is actually 0), it automatically converts it to (32-count).

--
Ajay Kr. Gautam
IDD, Part V
Dept. of Computer Science & Engg., IT-BHU
Varanasi-221005, UP
India
-----------------------------------------------------------------
"Easy reading is damned hard writing."
~ Nathaniel Hawthorne
--
Regards,
Karan
In my book (The C Programming Language, 2nd Edition by K&R), there are only 272 pages (including index).