Sail E0 Webinar
Question


Point out the error in the following program.


#include<stdio.h>
#include<stdlib.h>
int main()
{
static char *p = (char *)malloc(10);
return 0;
}
Options:
A .  Error: Lvalue required
B .  Error: Rvalue required
C .  Error: invalid *p declaration
D .  No error
Answer: Option D



Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers