Interviews6 answers
What is the output of the following statement?#include <stdio.h> main() {printf('%d', -1<1 ); }
6 Answers
1
GuruNadh07 GuruNadh07Posted Jan 24, 2018, 6:01 PM EST
1
Mukesh KumarPosted Aug 29, 2017, 5:05 PM EDT
1 will be the output.
Purushottam PrabhakarPosted Aug 10, 2017, 1:46 AM EDT
1 will be the output.
Purushottam PrabhakarPosted Aug 10, 2017, 1:46 AM EDT
False will be the Output!
Hari ManoharanPosted Apr 8, 2017, 4:21 AM EDT
ans: -2
A negative number stored in two’s compliment of positive number. After shifting we get 1110, which is equivalent to -2.
MURALI RPosted Aug 31, 2016, 4:52 AM EDT



