CMC Company Programming Technical

Consider the C language code given below.
int *a;
int b[2];
a = b;
b[0] = -46;
b[1] = -23;
*a = -34;
(*++a)++;
What are the values of b[0], b[1] at the end.
A -34, -24
B -46, -22
C -34, -22
D -46, -23

Read Solution (Total 4)

CMC Other Question

Which one of the following is the most suitable data structure for applications involving frequent additions and deletions of data elements?
A Stack
B Arrays
C Linear lists
D Linked list
Which of the following shell variable is used to return the process ID of the current shell?
A) $!
B) $$
C) $*
D) None