"Things should be made as simple as possible, but no simpler." -- Albert Einstein
char c;c = 127; c += 10;c = ?a) c>0 b) c<0 *c) c=0d) c>=0
int c = 0;if(c=(c!=1)){}c = ?a) 0b) 1 *c) trued) compiler error
char p[10][20][30];sizeof(p) = ?a) 1b) 10c) 600d) 6000 *
char *p = "Hello";sizeof(p) = ?a) 1b) 4 *c) 5d) 6
int i = 4;const int *p = &i;*p = 7;a)Compile time error *b)Run time errorc)No error, works fine
int a, b;#define MAX(x,y) ((x)>(y))?(x):(y)a = 3;b = MAX(a++,3)a,b = ?a) 5, 4b) 5, 5c) 4, 3 *d) 3, 3
int i = 4;i = (i++) - (++i);i = ?a) -1b) 0c) 1*d) 2
char c;
ReplyDeletec = 127; c += 10;
c = ?
a) c>0
b) c<0 *
c) c=0
d) c>=0
int c = 0;
ReplyDeleteif(c=(c!=1)){}
c = ?
a) 0
b) 1 *
c) true
d) compiler error
char p[10][20][30];
ReplyDeletesizeof(p) = ?
a) 1
b) 10
c) 600
d) 6000 *
char *p = "Hello";
ReplyDeletesizeof(p) = ?
a) 1
b) 4 *
c) 5
d) 6
int i = 4;
ReplyDeleteconst int *p = &i;
*p = 7;
a)Compile time error *
b)Run time error
c)No error, works fine
int a, b;
ReplyDelete#define MAX(x,y) ((x)>(y))?(x):(y)
a = 3;
b = MAX(a++,3)
a,b = ?
a) 5, 4
b) 5, 5
c) 4, 3 *
d) 3, 3
int i = 4;
ReplyDeletei = (i++) - (++i);
i = ?
a) -1
b) 0
c) 1*
d) 2