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)

  • 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...

  • 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...

  • 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

  • 6. (Short answer) The C++ code below is very close to working, but, as written, won't...

    6. (Short answer) The C++ code below is very close to working, but, as written, won't compile. When trying to compile, the compiler generates a number of errors similar to "cout' was not declared in this scope." Respond to the prompts below about the code.(20 points, 5 points each) #include <iostream> void FindMax(int a, int b, int& max) { if (a > b) max = a; else { max = b; } int main() { int num1 = 0; int...

  • hw3 Data Structure: Please write programs and finish the question in C language: thank you (You...

    hw3 Data Structure: Please write programs and finish the question in C language: thank you (You can do both 5 & 6 if you know both, or you can do any one of these 2 questions that you know, thank you!) 5. Generate a function for clockwise rotation each node (either char type or int type) in doubly linked list by N places, e.g. given list = NULL<-Head<=>c<=>i<=>v<=>i>=>c->NULL, from function call rotate DLL(list, 3), the output will be like this...

  • In C language 5. What is the OUTPUT of each of these programs? If you aren't...

    In C language 5. What is the OUTPUT of each of these programs? If you aren't confident of an answer, type mpile and run the program to test it. (a) <stdio.h> #include int main main int count; int sum0; for (count 1; count10; count++) sum sum+ count; for count printf("sum= %d\n", return 0; sum); )main (b) #include int main ) <stdio.h> main/ int count; int sum -0 for (count 1 count10; count 2) sum sum + count; for count print...

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
ADVERTISEMENT