?
In which condition this program will print the string "Example"?
In which condition this program will print the string "Example"?
#include<stdio.h>
#include<stdlib.h>
int main()
{
int *ptr;
ptr = (int *)malloc(sizeof(int)*10);
if (ptr == NULL)
printf("Example\n");
return 0;
}
#include<stdio.h>
#include<stdlib.h>
int main()
{
int *ptr;
ptr = (int *)malloc(sizeof(int)*10);
if (ptr == NULL)
printf("Example\n");
return 0;
}
Join the Discussion
Login to post a comment or share your explanation.
Login