Given int n, i=10, j=20, x=3, y = 100;
What is the value of n and y at the end of each of the following expressions?
a) n = (i > j) && (x < ++y);
b) n = (j - i) && (x < y++);
c) n = (i < j)
Read Answers(11) | 8,323 Views |
int x = 5;
int y = 7;
What is the value of x and y after the expression y+=x++;
Read Answers(13) | 8,765 Views |
What is the value of “a” after this?
int (*a) [10];
a++;
Read Answers(9) | 10,181 Views |
What is wrong with this?
main(){
int *ptr;
*ptr=10;
}
Read Answers(26) | 9,012 Views |
What errors are caught at compile time vs link time?
Read Answers(5) | 6,612 Views |
Does C++ come with in-built threading support.
Read Answers(5) | 6,970 Views |
Class A derived B derived C. All have foo(). I cast C to A and call foo(). What happens?
Read Answers(12) | 6,264 Views |
Compare and contrast C++ and Java.
Read Answers(6) | 4,205 Views |
Why does C/C++ give better run-time performance then Java?
Read Answers(3) | 5,531 Views |
How do you call a C module within a C++ module.
Read Answers(2) | 6,531 Views |