what does ‘segmentation violation’ mean?



what does ‘segmentation violation’ mean?..

Answer / vadivel t

Segmentation voilation occurs when we are trying to access
or modify the data in the location, which is resticted to
access. This problem can occur when u r trying to write
data in read only memory or when u r trying to overwrite
the OS files.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Interview Questions

application of static variables in real time

1 Answers   Bosch,


Predict the output or error(s) for the following: 25. main() { printf("%p",main); }

3 Answers   Google, ME,


write the output of following code .. main() { static int a[]={10,20,30,40,50}; int *ptr=a; static int arr[2][2]={1,2,3,4}; char str[]="ABCD * 4#"; char *s=str+2; int i,j; for(i=0;i<5,i++) printf("%d",*ptr++); for(i=0;i<2;i++) for(j=0;j<2;j++) printf("%d\n",*(*(n+i)+j)); printf("%c\n%c\n%c\n",*(str+2),*s++,*--s); }

1 Answers  


What are the different file extensions involved when programming in C?

0 Answers  


any string of bits of length 'n' represents a unique non- negative integer between.............?

2 Answers  






how does a general function , that accepts an array as a parameter, "knows" the size of the array ? How should it define it parameters list ?

2 Answers   Patni, TCS,


What is data type long in c?

0 Answers  


write a program to display the numbers in the following 4 4 3 3 2 2 1 1 0 1 1 2 2 3 3 4 4

1 Answers  


What is the best style for code layout in c?

0 Answers  


#define swap1(a,b) a=a+b;b=a-b;a=a-b; main() { int x=5,y=10; swap1(x,y); printf("%d %d\n",x,y); swap2(x,y); printf("%d %d\n",x,y); } int swap2(int a,int b) { int temp; temp=a; b=a; a=temp; return; } what are the outputs?

4 Answers   Ramco,


Write a program to compute the following 1!+2!+...n!

4 Answers  


Why is extern used in c?

0 Answers  


Categories