Question

In the C programing language: As you have been working on programs, what compiler errors have...

In the C programing language: As you have been working on programs, what compiler errors have you received, what caused the errors, and what did you do to fix the errors?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

I faced some compile errors while working on programms those are

1.Intially I forgot to make semi colonsat the end of statements

2.I missed some braces wfor openiong and cloing the functions

3.missed some arguments to call a function

4.missed headers

when i compiled it gives me some errors saying syntax error ,

i reviewed my code several times after that i got to know oh i forot this this like ..

in this way i solved my erros...

Add a comment
Answer #2

Overflow Numeric calculations which produce a result too large to represent.
Divide by Zero Dividing a numeric value by zero.
Invalid Shift Shifting an integer value by an amount which produces an undefined result according to the C standard.
Memory Errors Accessing an invalid memory region in a way which produces an undefined result, such as accessing an array outside its bounds or accessing heap-allocated memory after the memory has been freed.
Uninitialized Data Access Accessing memory before the memory has been initialized, so that the result of the access is undefined under C semantics.

Invalid array index
Accessing A[i] when i is outside the bounds of A.
Buffer overrun
Accessing *p when the value of p has been incremented to point past the end of its target.
Invalid pointer
Accessing *p when p has been overwritten with a non-pointer value (this can happen when using a union construct).
Heap error
Accessing *p when p points to a chunk of heap-allocated memory which has been previously deallocated via the free() function.
Stack error
Accessing *p when p points to a local variable of a function f() after f() has returned.

unintialized local variable
syntax errors

Add a comment
Know the answer?
Add Answer to:
In the C programing language: As you have been working on programs, what compiler errors have...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Part III. Common String Errors The following two example programs demonstrate common errors that often occur...

    Part III. Common String Errors The following two example programs demonstrate common errors that often occur when programming with Strings. public class StringErrors1 {     public static void main(String [] args) {       String greeting = "hello world";       greeting.toUpperCase();       System.out.println(greeting);     } } Type above code in Dr. Java or Eclipse. Compile and run the program a few times. What does this program do? How might you make the program more user-friendly? Now run the program two more...

  • You have been working with a child with a language disorder to try and improve their...

    You have been working with a child with a language disorder to try and improve their speaking skills. You have been trying a new method for the last two weeks but are not certain as to whether it is having the desired effect. From whom can you seek feedback regarding the impact of the new strategy on the child? (100–150 words)

  • Programming Language : Python Question a) What is its implementation method(s)? (compiler implementation, pure interpretation, hybrid...

    Programming Language : Python Question a) What is its implementation method(s)? (compiler implementation, pure interpretation, hybrid implementation(JIT compiler?)) b) Does the language have a runtime environment? If yes, how is it called? and Where do you get it?(URL).

  • You have not written programs in any programming language before. How difficult do you think writing...

    You have not written programs in any programming language before. How difficult do you think writing programs will be compared to other new skills that you have mastered? Most programming texts encourage students to use many comments in their programs. Some students feel that writing program comments is a waste of time. What is your opinion? Why? Are there circumstances under which you would take the opposite stance?

  • solve c programing language with Output screeshort? Develop a program that accepts integers from command line...

    solve c programing language with Output screeshort? Develop a program that accepts integers from command line and uses fork() to have 4 child processes that will do sorting the integers into ascending order, computing the sum of the integers, and counting the number of even numbers and the number of odd numbers respectively.

  • Please the answer have to be in JAVA programing language Problem 1: Write a class that...

    Please the answer have to be in JAVA programing language Problem 1: Write a class that implements a generic binary search tree including the methods add, contains and printInorder.   (We will do this as a group) Problem 2: Add a toString method to the class. This method returns a string of the form “[e1, e2, …, en]” containing all of the elements in the tree in order. Problem 3: Add a method to the class that returns the number of...

  • 5. Write a short technical note about Tiny C compiler. 6. What is the difference between...

    5. Write a short technical note about Tiny C compiler. 6. What is the difference between an empty string and empty ser 7. Debugger checks for errors in compilation process. True or False? Explain. (-2 for wrong answer) 8. Explain the term Regular Language. 9. Discuss the term Context-free grammar. 10. What is an Interpreter? Write hort notes about 2 of them.

  • You are a speech-language pathologist working in a hospital and are asked to evaluate a patient...

    You are a speech-language pathologist working in a hospital and are asked to evaluate a patient for aphasia. 1) What would you ask this patient to do and what symptoms would you be looking for in order (both in terms of what is missing and what is preserved) to diagnose whether or not they have Broca's aphasia? If you determined they had Broca's aphasia, what part of the brain would you determine has been affected? 2) What symptoms would lead...

  • Heart Disease in African American Community is my project I have been working on.. Who are...

    Heart Disease in African American Community is my project I have been working on.. Who are the stakeholders in the health concern or problem you have chosen? How do you go about choosing stakeholders? What is the importance of stakeholders in the success of public health programs? Draft Plan including feasibility and key elements such as stakeholders, resources, challenges, and conclusion

  • NOTE: All C++ programs that you write must have comments at the top with the program...

    NOTE: All C++ programs that you write must have comments at the top with the program name, your name, and the pseudocode describing what the program will do. 1. Create a new program that will calculate the total cost for software purchased from a store. Each software package costs $99.00, but discounts are given on the total cost, based on the number of packages purchased. a. Ask the user for the number of packages they want to buy b. Calculate...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT