The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+1 vote
37 views
main()

{

int a=2;

if(a==2)

{

a=~a+2<<1;

printf("%d",a);

}

else

{

break;

}

a)-3

b)-2

c)1

d)compile error
asked in Programming by Boss (12.3k points) | 37 views

1 Answer

0 votes
compiler error : because break should be used with in loops or switch
answered by Active (3.3k points)


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

37,120 questions
44,702 answers
127,296 comments
43,768 users