Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.
Login
Login
OnlineGDB Q&A
Questions
Unanswered
Tags
Ask a Question
Ask a Question
how to solve segmentation fault in c
0
votes
asked
May 13, 2018
by
anonymous
Please
log in
or register to answer this question.
2 Answers
0
votes
answered
May 15, 2018
by
anonymous
void main ()
{
printf ("enter the values");
scanf("%d",&4);
i=1;
while(i<=10)
{
printf("%d*%d=%d\n",n,i,n*i);
i=i+1;
}
}
Please
log in
or register to add a comment.
0
votes
answered
May 15, 2018
by
anonymous
edited
May 15, 2018
1)To Solve the Segmentation fault in c,we have to make sure our variables are not accessing the unauthorized sections like code section and text sections.
2)and make sure our variables are modifying the data in the code section directly.
Please
log in
or register to add a comment.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and receive answers from other members of the community.
...