Like Tree2Likes
  • 2 Post By AndrewHunter

stray errors

This is a discussion on stray errors within the C Programming forums, part of the General Programming Boards category; why is a stray error caused? how to rectify a stray error in a c progam?...

  1. #1
    Registered User
    Join Date
    Jul 2011
    Location
    chennai
    Posts
    1

    Post stray errors

    why is a stray error caused?
    how to rectify a stray error in a c progam?
    Last edited by Salem; 07-13-2011 at 11:18 AM. Reason: Remove font colour and size abuse - it does nothing if you make the whole text the same

  2. #2
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,866
    Just don't feed them, everyone knows if you feed strays - even a little - they will keep coming back......
    laserlight and anduril462 like this.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  3. #3
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    You should probably actually include the entire error message. It probably says something like "stray character '»' encountered" (for some value of »); and that just means that you have a character in your source code file that doesn't belong.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,824
    We most often see this when you blindly copy/paste code from some website or other place.
    Especially when they've overdone the pretty-printing, for example turning " into ʺ to make it look 'better'
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What does: 'error: stray ‘\357’ in program' mean?
    By Phanixis in forum Linux Programming
    Replies: 8
    Last Post: 12-04-2010, 01:48 AM
  2. stray '@' in program
    By hilbert16 in forum C++ Programming
    Replies: 2
    Last Post: 10-05-2010, 07:21 AM
  3. stray characters...
    By vapanchamukhi in forum C Programming
    Replies: 3
    Last Post: 09-22-2008, 05:43 AM
  4. Stray \127? Waaaaaaaaa?
    By Terran in forum C++ Programming
    Replies: 4
    Last Post: 07-07-2008, 03:13 AM
  5. stray '\223' in program... Help
    By reRanger in forum C++ Programming
    Replies: 3
    Last Post: 11-23-2004, 02:45 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21