What is a segmentation fault?

Answer Posted / hr@tgksolutions.com

It occurs when a program attempts to access an invalid memory location.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is #define used for in c?

846


What is variable and explain rules to declare variable in c?

821


What is function prototype?

821


4. main() { int c=- -2; printf("c=%d",c); }

1596


What is a stream?

901


Explain bit masking in c?

937


Explain pointer. What are function pointers in C?

858


What is the maximum length of an identifier?

941


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

883


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

826


Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

3962


What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file

908


What does the format %10.2 mean when included in a printf statement?

1389


Between macros and functions,which is better to use and why?

1842


difference between native and cross compilers

1900