what does ‘segmentation violation’ mean?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?

622


`write a program to display the recomended action depends on a color of trafic light using nested if statments

1629


How do you declare a variable that will hold string values?

668


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

2604


What is the difference between procedural and functional programming?

515






Explain what are linked list?

617


What do you mean by invalid pointer arithmetic?

637


Is there a way to switch on strings?

610


What is memcpy() function?

620


How does sizeof know array size?

622


Can a local variable be volatile in c?

574


Was 2000 a leap year?

626


How can I determine whether a machines byte order is big-endian or little-endian?

615


Why do we need a structure?

583


Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.

4836