-
-
Which one of the following statements allocates enough space to hold an array of 10 integers that are initialized to 0 ?
a) int *ptr = (int *) calloc(10,sizeof(int)); b) int *ptr = (int *) alloc( 10*sizeof(int)); c) int *ptr = (int *) malloc( 10*sizeof(int)); d) int *ptr = (int *)calloc(10*sizeof(int));
-
Which one of the following represents a correct and safe declaration of NULL ?
a) typedef((void *)0) NULL; b) typedef NULL(char *)0; c) #define NULL((void *)0) d) #define NULL((char*)0)
-
process id of kernel
(a) 1 (b) 0 (c) 2 (d) none