ExamVeda
Login
Home
This question belongs to Computer Science Linux
Linux
?

Which one of the following in true about this program?
#include<stdio.h>
#include<stdlib.h>
#include<string.h>                              
 
int main()
{
    char *ptr;
    printf("%p\n",ptr);
    ptr = (char *)malloc(sizeof(char));
    printf("%p\n",ptr);
    return 0;
}

Answer & Solution
Correct Answer: Option D
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.