Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.

Have an account? Sign In

Captcha Click on image to update the captcha.

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have a permission to ask a question, You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Tech Answered Logo Tech Answered Logo
Sign InSign Up

Tech Answered

Tech Answered Navigation

  • Home
  • Tutorials
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Blog
  • Contact Us
Home / Questions /Q 2468
Next
In Process
Namrata
Namrata

Namrata

  • India
  • 15 Questions
  • 14 Answers
  • 2 Best Answers
  • 71 Points
View Profile
  • 0
Namrata
Asked: June 23, 20212021-06-23T20:43:20+05:30 2021-06-23T20:43:20+05:30In: C Language

What Is A “null Pointer Assignment” Error? What Are Bus Errors, Memory Faults, And Core Dumps?

  • 0

What Is A “null Pointer Assignment” Error? What Are Bus Errors, Memory Faults, And Core Dumps?Is there any way to overcome these errors? if yes what are the ways and how can we do it?

and core dumps?bus errorscore dumps?memory faultsnull pointer assignmentwhat are bus errorswhat is "null pointer assignment" error?
  • 1
  • 1,446
  • 0
  • 0
Answer
Share
  • Facebook

    Related Questions

    • code for matrix multiplication in c
    • c keep asking for input how to write a program that asks user input
    • How do you find the factorial of a number in C using while loops?
    • What is OOPs concept in C++ with examples?
    • What is the use of github?
    • How to fix broken commit
    • in turbo c how to change the cursor

    1 Answer

    1. Krishna Vijayan

      Krishna Vijayan

      • India
      • 8 Questions
      • 218 Answers
      • 9 Best Answers
      • 1 Point
      View Profile
      Krishna Vijayan
      2021-10-13T17:47:56+05:30Added an answer on October 13, 2021 at 5:47 pm

      Here are the explanations to your query about Null Pointer Assignment Error, Bus Errors, Memory Faults And Core Dumps in C language:

      • Null Pointer Assignment Error: A NULL pointer assignment is a runtime error It occurs due to various reasons one is that your program has tried to access an illegal memory location. Illegal location means either the location is in the operating systems address space or in the other processes memory space. In stdio.h NULL is defined as 0 So whenever your program tries to access 0th location the operating system kills your program with runtime assignment error because the 0th location is in the operating systems address space and operating system doesn’t allow access to its address space by user program .
      • Bus Error: A bus error indicates an attempt to access memory in an illegal way, perhaps due to an unaligned pointer. A ‘bus error’ is certain undefined behavior result type. The cause for such error on a system could not be specified by the C language. The memory accessibility which CPU could not address physically, ‘bus error’ occurs. Also, any fault detected by a device by the computer system can also be a ‘bus error’. These errors caused by programs that generate undefined behavior which C language no longer specifies what can happen.
      • Core Dump/ Segmentation Fault: Core Dump/Segmentation fault is a specific kind of error caused by accessing memory that does not belong to you. When a piece of code tries to do read and write operation in a read only location in memory or freed block of memory, it is known as core dump. It is an error indicating memory corruption.

      Hope this answer helped. Also read, How to find factorial of a number in C

       

      • 1
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    Leave an answer

    Leave an answer
    Cancel reply

    Browse

    Sidebar

    Ask A Question

    More Questions

    • glenn

      code for matrix multiplication in c

    • Tech savvy

      c keep asking for input how to write a program

    • Mingle tap

      How do you find the factorial of a number in

    • Hari

      What is OOPs concept in C++ with examples?

    • Samakshi baghel

      What is the use of github?

    • Samakshi baghel

      How to fix broken commit

    • shree

      in turbo c how to change the cursor

    • Rekha kumari

      How to print all characters from a string in C.

    Stats

    • Questions 1,985
    • Answers 2,097
    • Posts 12
    • Best Answers 73

    Related Questions

    • glenn

      code for matrix multiplication in c

    • Tech savvy

      c keep asking for input how to write a program that asks

    • Mingle tap

      How do you find the factorial of a number in C using

    • Hari

      What is OOPs concept in C++ with examples?

    • Samakshi baghel

      What is the use of github?

    • Samakshi baghel

      How to fix broken commit

    • shree

      in turbo c how to change the cursor

    • Rekha kumari

      How to print all characters from a string in C.

    Explore

    • Home
    • Communities
    • Questions
      • New Questions
      • Trending Questions
      • Must read Questions
      • Hot Questions
    • Polls
    • Tags
    • Badges
    • Users
    • Help

    Footer

    Recent Comments

    • shree on How to use philips citrus press juicer 25 watts Demo
    • kiran kumar85 on How To Insert Names Automatically in Excel Sheet With VBA Code
    • Satish on How To Insert Names Automatically in Excel Sheet With VBA Code
    • jameslaurence on alarm won’t go off while on facetime how to fix
    • jameslaurence on how to solve export problem in kinemaster
    Ask A Question

    Archives

    Tags

    laptop buying guide (1) limit google news notifications (1) printer buying guide (1) stop google news notifications (1) turn off google news notifications (1)

    Social media

    © 2023 @ Techanswered.com.
    Terms, Privacy policy & Sitemap.

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.