Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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:
 

mengghee

Full Member level 3
Joined
Nov 29, 2005
Messages
164
Helped
8
Reputation
16
Reaction score
5
Trophy points
1,298
Location
United Kingdom
Activity points
3,112
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
 

jimjim2k

Advanced Member level 3
Joined
May 17, 2001
Messages
996
Helped
23
Reputation
46
Reaction score
13
Trophy points
1,298
Activity points
7,270
types of errors in c language.

Hi

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


tnx
 

echo47

Advanced Member level 5
Joined
Apr 7, 2002
Messages
3,942
Helped
637
Reputation
1,272
Reaction score
88
Trophy points
1,328
Location
USA
Activity points
33,183
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.
https://ugweb.cs.ualberta.ca/~rod/tutorials/error_messagesC.html

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top