int a[] = {9, 9, 9, 9};
int i = 1;
a[i] = i++;
When the code above executes
there are two possible sets of results for a[1] and a[2]. What are they?
set 1: set 2: a[1] = a[1] = a[2] = a[2] =
00101110 +01011011 ---------
10001011
Find the decimal equivalent.
10001011
Find the decimal equivalent.
00001011
Find the decimal equivalent.
int ctrl;Its 8th bit controls whether or not to allow revese printing (from right to left). Write code to set the 8th bit and allow reverse printing.
ctrl.
int x = 23;. What is the value of the expression
(x << 3) + (x << 1)
char c; int lowerCaseCount=0;You are to write a statement that increases
lowerCaseCount by 1 if character c contains a
lower case letter.
switch
construct to count the number of vowels in the string stored in array
str. Replace the switch with an if construct:
if (....)
vCount++;
else
nonVCount++;
Your job is to figure out what goes between the parentheses.