Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How many types of ERRORS in C language?????

Status
Not open for further replies.

soni.pankajkumar

Newbie level 5
Joined
Jan 10, 2006
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Bangalore
Activity points
1,359
types of errors in c language

can anybody tell me about different types errors in C language.
which type of error will occur when we do any particular error it may be related from syntax,variable name etc.......
plz list all type of errors some interviewer asks in interview thats y i want to know....?:cry:
 

different types of errors in c language

i guess ... the question u asked is a question with a very wide answers ... i think everybody will have different answers to your questions. i have a few but i think there are a lot more errors.

-function should return a value
-undefined symbol
-call to undefined function
-do-while statement missing
-compound statement missing
-code has no effect

i hope it helps

regards,
mengghee
 

types of errors in c language.

Hi

You may also use from a lint tool for C language.
It will guide you depthly.


tnx
 

I'm guessing there are hundreds of different ways to create errors.

Here's a web page that talks about some common errors when using GCC.
**broken link removed**

Here's my favorite bug. It's legal code, but I wish compilers would emit a "suspicious syntax" warning.
Code:
#include <stdio.h>

int main(void)     /* print numbers from 1 through 10 */
{
  int x;

  for (x=1; x<=10; x++);
    printf("%d\n", x);
  return 0;
}
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top