+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Newbie level 5
    Points: 1,288, Level: 8

    Join Date
    Jan 2006
    Location
    Bangalore
    Posts
    10
    Helped
    0 / 0
    Points
    1,288
    Level
    8

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

    •   Alt13th January 2006, 12:06

      advertising

        
       

  2. #2
    Full Member level 3
    Points: 2,485, Level: 11

    Join Date
    Nov 2005
    Location
    United Kingdom
    Posts
    164
    Helped
    5 / 5
    Points
    2,485
    Level
    11

    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



    •   Alt14th January 2006, 05:32

      advertising

        
       

  3. #3
    Super Member
    Points: 16,834, Level: 31

    Join Date
    May 2001
    Posts
    1,000
    Helped
    21 / 21
    Points
    16,834
    Level
    31

    types of errors in c language.

    Hi

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


    tnx



    •   Alt14th January 2006, 06:08

      advertising

        
       

  4. #4
    Advanced Member level 5
    Points: 40,208, Level: 49

    Join Date
    Apr 2002
    Location
    USA
    Posts
    3,944
    Helped
    649 / 649
    Points
    40,208
    Level
    49

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

    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.
    http://ugweb.cs.ualberta.ca/~rod/tut...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;
    }



+ Post New Thread
Please login