0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
I guess the answers are already there to many questions.
0
Dark_Knight's Avatar, Join Date: Apr 2007
Light Poster
There are quite a few question which I dont know how to solve, so I needed answers for those
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by Dark_Knight
There are quite a few question which I dont know how to solve, so I needed answers for those
You can always discuss them in the forums (Unless you get the answers.)
0
Dark_Knight's Avatar, Join Date: Apr 2007
Light Poster
How do u solve this?

/*question number 97*/

Code:

int m = -14;
int n = 6;
int o;
o = m % ++n;
n += m++ - o;
m <<= (o ^ n) & 3;
Assuming two's-complement arithmetic, which one of the following correctly represents the values of m, n, and o after the execution of the code above?
Choice 1
m = -26, n = -7, o = 0
Choice 2
m = -52, n = -4, o = -2
Choice 3
m = -26, n = -5, o = -2
Choice 4
m = -104, n = -7, o = 0
Choice 5
m = -52, n = -6, o = 0
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
o = -14 % 7 = 0
n = 7 + (-14) - 0 = -7 which concludes the result.
0
Dark_Knight's Avatar, Join Date: Apr 2007
Light Poster
Thanks!!
0
Dark_Knight's Avatar, Join Date: Apr 2007
Light Poster
*question number 75*/
Which one of the following is true for identifiers that begin with an underscore?
Choice 1
They are generally treated differently by preprocessors and compilers from other identifiers.
Choice 2
They are case-insensitive.
Choice 3
They are reserved for usage by standards committees, system implementers, and compiler engineers.
Choice 4
Applications programmers are encouraged to employ them in their own code in order to mark certain symbols for internal usage. Choice 5
They are deprecated by Standard C and are permitted only for backward compatibility with older C libraries.


Is the answer (1) ?
0
Dark_Knight's Avatar, Join Date: Apr 2007
Light Poster
Sorry, I think its 4
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by Dark_Knight
Sorry, I think its 4
0
AHMAD's Avatar, Join Date: Jun 2007
Newbie Member
How Are You