What is a segmentation fault?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
It occurs when a program attempts to access an invalid memory location.
| Is This Answer Correct ? | 0 Yes | 0 No |
It occurs when a program attempts to access an invalid memory location.
| Is This Answer Correct ? | 0 Yes | 0 No |
how can i get the string which is having two spaces at the end.suppose the string is "Hello World ".Now at the end i have two spaces.i need to print with that spaces .
Whether there can be main inside another main?If so how does it work?
What is the output of following program ? int main() { int x = 5; printf("%d %d %d\n", x, x << 2, x >> 2); }
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
sqrt(x+sqrt(x+sqrt(x+sqrt(x))))=2; Find the value of x?
Why pointers are used in c?
write a own function to compare two strings with out using stringcomparition function?
Is c a great language, or what?
Explain what does it mean when a pointer is used in an if statement?
main() { int i = -3,j=2,k=0,m; m= ++i || ++j && ++k; printf("%d%d%d",i,j,k,m); }
What is new line escape sequence?
What will be the result of the following program? char*g() { static char x[1024]; return x; } main() { char*g1="First String"; strcpy(g(),g1); g1=g(); strcpy(g1,"Second String"); printf("Answer is:%s", g()); } (A) Answer is: First String (B) Answer is: Second String (C) Run time Error/Core Dump (D) None of these