가 나는 아래의 프로그램을 가지고 컴파일이 성공하지만 실행하는 동안, 일식의 프로그램이 충돌이이해 포인터
struct Student
{
unsigned int *ptr; //Stores address of integer Variable
}*s1;
int main()
{
unsigned int roll = 20;
s1->ptr = &roll;
printf("\nRoll Number of Student : %d",*(s1->ptr));
return(0);
}
롤 사용하여 포인터의 값을 인쇄하는 방법을 액세스하는 C에서 포인터 멤버를 참조 구조에
(S1)가 –