#include<stdio.h>
#include<stdlib.h>
main()
{
int *p;
p=(int*)calloc(3*sizeof(int));
printf("Enter first number\n");
scanf("%d",p);
printf("Enter second number\n");
scanf("%d",p+2);
printf("%d%d",*p,*(p+2));
free(p);
}
a) 56
b) Address of the locations where the two numbers are stored
c) 57
d) Error
What will be the output of the following C code if the input entered as first and second number is 5 and 6 respectively?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What will be the output of the following C code if the input entered as first and second number is 5 and 6 respectively?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!