CMC Company Programming Technical

Which of the following shell variable is used to return the process ID of the current shell?
A) $!
B) $$
C) $*
D) None

Read Solution (Total 3)

CMC Other Question

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
The system call that is key to multitasking in UNIX
A) Exec
B) Fork
C) System
D) None