UrbanPro

Learn C Language from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What is the difference between compile time error and run time error?

Asked by Last Modified  

Follow 1
Answer

Please enter your answer

Success in CBSE / ICSE Class 12 and 10 Mathematics Boards

Compile error is the error when you check for syntax error while run time error comes when you do execution of the program.
Comments

Computers, Math, Science, Programming

Errors which occur at the time of compilation are compile time errors and errors which occur at runtime are runtime errors. Example like syntax errors are all compile time errors. where as logical errors or out of memory, network error,etc occurs at the time of running the program file.
Comments

Tution for computer science students

Simply we can that compile time error occurs during the compilation of a program where as run time error occurs during execution of a program
Comments

Software Developer and Trainer with 10 years of experience

Compile Time Errors - Errors that were caught during compilation of the program are called as Compile Time Errors. Mostly Language Syntax Errors & Semantic Errors will be caught as Compile Time Errors. Run Time Errors - Errors that were caught during the execution of the program are called as Run...
read more
Compile Time Errors - Errors that were caught during compilation of the program are called as Compile Time Errors. Mostly Language Syntax Errors & Semantic Errors will be caught as Compile Time Errors. Run Time Errors - Errors that were caught during the execution of the program are called as Run Time Errors. Logical Errors like integer divided by Zero will be caught during this Run Time as this kind of error cant be caught during compile time. read less
Comments

C/C++ & UNIX Shell Scripting Programmer & Tutor

As rightly said by Avinash and Vinod the compile time error is the error at compile time. Syntactic error. Consider it as grammatical error (grammer of a compiler). Run time error is the memory related error or some undefined behavior. Consider you allocated a character array of 20 bytes to store your...
read more
As rightly said by Avinash and Vinod the compile time error is the error at compile time. Syntactic error. Consider it as grammatical error (grammer of a compiler). Run time error is the memory related error or some undefined behavior. Consider you allocated a character array of 20 bytes to store your name. No issues with the statement so no compile time error. But now let us you try to store 25 bytes name on that, it may produce run time error. read less
Comments

Freelance technical trainer / consultant (Embedded systems, Automation / Scripting) : C, Linux, Embedded systems, python, perl, tcl

Suppose say you are working on Linux and use are using gcc to compile. Whatever error you get when you execute gcc Sample.c, they are compile time errors. Whatever error you get when you execute ./a.out, they are run time errors.
Comments

View 4 more Answers

Related Questions

Can we have if inside else-if or else in C programming language?
Yes it is possible to do so. The if... else if..... else statements support one other inside themselves... so...
Kirthi
What is the difference between a string and an array?
An array is an array of anything. A string is a specific kind of an array with a well-known convention to determine its length. There are two kinds of programming languages: those in which a string is...
Rakes
Can anybody provide me error free coding for graphic program in C??? Animated Smiley program Rotating Fan progran Sunrise program
#include graphics.h #include conio.h #include stdlib.h #include dos.h main() { int gd = DETECT, gm,area,temp1,temp2,left =25,top=75; void *p; initgraph(&gd,&gm,”C:\TC\BGI”); setcolor(YELLOW); circle(50,100,25); setfillstyle(SOLID_FILL,YELLOW); floodfill(50,100,YELLOW); setcolor(BLACK); setfillstyle(SOLID_FILL,BLACK); fillellipse(44,85,2,6); fillellipse(56,85,2,6); ellipse(50,100.205,335,20,9); ellipse(50,100.205,335,20,10); ellipse(50,100.205,335,20,11); area...
Gayu
0 0
8
What are the functions in C programming?
In C programming, functions are blocks of code that perform a specific task. They allow you to break down your program into smaller, reusable pieces, making your code more modular and easier to understand....
Advm
0 0
5
When is a "switch" statement better than multiple "if" statements?
switch statement is generally best to use when you have more than two conditional expressions based on a single variable of numeric type. For instance, rather than the code if (x == 1) printf(“x...
Shalu

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons


Recursion in C Programming
The process of calling a function by itself is called recursion and the function which calls itself is called recursive function. Syntax of Recursive Function returntype recursive_func () { statements; ...
R

Ravindra Yadav

2 0
0

Why we need to learn Programming languages?
Language is medium for communication. If two parties like to communicate or exchange the thoughts they must know a language. Language should be understandable by both the Parties. For example A wants to...

C++ Program-Working with constant using #define preprocessor
//Header Files #include#include // using #define preprocessor for defining a constant#define len 10#define br 5#define rad 3#define NEWLINE '\n' //Main function void main(){ int area_r; float area_c; //Function...
S

Functions In C Programming
A C-language program is nothing but collection of Function, these are the building blocks of a ‘C’ program. Generally, a function mans a task. “Function is a...

Recommended Articles

Lasya Infotech is a Hyderabad based IT training institute founded in 2016 by O Venkat. Believing in his innovation, passion and persistence and with a diverse blend of experience, he started his brainchild to deliver exemplary professional courses to aspiring candidates by honing their skills. Ever since the institute envisions...

Read full article >

Brilliant Academy is one of the reputed institutes for B.Tech tuition classes. This institute is specialised in delivering quality tuition classes for B.E, Engineering - all streams and Engineering diploma courses. Incorporated in 2012, Brillant Academy is a brainchild of Mr Jagadeesh. The main motto of the academy is to...

Read full article >

Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...

Read full article >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

Read full article >

Looking for C Language Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for C Language Classes?

The best tutors for C Language Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn C Language with the Best Tutors

The best Tutors for C Language Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more