Question: Why does this code in C run into a segfault? int main(){ int i = 5; int *iPtr = i; printf(%d, *iPtr); }
Why does this code in C run into a segfault?
int main(){
int i = 5;
int *iPtr = i;
printf(%d, *iPtr);
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
