Find the error of the code segment given below and briefly explain how you can correct the error introduced within code segment. ##include #include main() { int *p; p=(int*)malloc(4*sizeof(int)); for(i=1;i<10;i++) { p[i]=2*i+1; printf("lf\n",p[j]); } }
Answers
Answered by
0
Answer:
#include<studio.h>
#include<conio.h>
void main()
{
int ;
printf(" ");
scanf (" ");
getch();
}
in basic formula of c language programming in printf you type value what want to print
if you want you can search on YouTube
Similar questions
English,
4 months ago
Social Sciences,
4 months ago
Math,
9 months ago
Math,
9 months ago
Social Sciences,
1 year ago