Select the correct option to test your answer:
Computer
Standard Library Functions
Difficulty: Medium
Point out the error (if any) in the following C code? #include <stdlib.h> #include <stdio.h> int main(void) { int* p = NULL; struct S *s = NULL; void(*f)(int, double) = NULL; char *ptr = malloc(15); if (ptr == NULL) printf("Out of memory"); free(ptr); }
More Computer Questions
Affine cipher is an example of?
. . . . . . . . is a method of constructing a smallest polygon out of n given points.
What is the size of the following array declaration in C++: char str[10];?
Which datatype is used for a fixed length binary string?
What is the result of the expression &array[0] in C, where array is an integer array?