Do you know the answer to a coding question and want to offer your advice? Stack Overflow gives you a chance to help someone by answering other people's technical questions, and this wikiHow article teaches you how to do that. This guide will also cover basic formatting and general best practices, plus what to expect when you answer a question on Stack Overflow.

Section 1 of 3:

Answering Questions

  1. 1
    Go to https://stackoverflow.com/questions. You can use any web browser, like Chrome or Safari, to visit this site and answer questions.
    • You can sort the questions by newest, active, bountied, unanswered, and more. If you want to browse questions, you'll find more under "Hot Network Questions" on the right side of the page.
    • To narrow your results, you can look for specific tags. Tags appear on the right side of the page under "Related Tags." Click More related tags to see more tags.
  2. 2
    Find a question that you think you can answer well. Click on the title of the question (it's blue) that you want to answer. You'll be redirected to that thread.
    Advertisement
  3. 3
    Read the question and other answers carefully. Figure out if you have any additional, relevant information to add. If not, then answering is not going to be the best action for you to take since repeated or poor answers will result in you getting a negative reputation.
  4. 4
    Fill in your answer in the Answer Box. You can add formatting including bold, italics, links, and images to enhance your answer at the top of the box.
    • If you don't see an answer box, your account may have been banned for lots of low-quality or poorly rated answers. To lift the ban, the Stack Overflow system must decide that you have more highly rated and positive reviews than negative ones.[1]
  5. 5
    Sign in or enter the information to post as a guest. When you're finished writing your answer, you'll need to sign in or post as a guest with some pertinent information, like your name and email address.
  6. 6
    Click Post Your Answer. The page will reload and your answer should show up in the next few minutes.
    • If you need help formatting your answer visit Stack Overflow's editing help page here: http://stackoverflow.com/editing-help
    • Once you have posted your answer, consider finding another question by clicking on a related tag, or re-searching the question page.
  7. Advertisement
Section 2 of 3:

Basic Formatting and Best Practices

  1. 1
    Press Ctrl+K to toggle indenting as code. Using the escaped block (<pre><code>), your text will include a grey block of about 4 indented spaces before a new line. The blocks here prevent your code from automatically running in the comments.
  2. 2
    Press Ctrl+I (Italics) or Ctrl+B (Bold) to format your text. This is useful for putting emphasis on specific areas of your text.
  3. 3
    Enter "</br>" to enter a line break. If you don't want all your text in one line, you can use that HTML code to break up your text.
  4. 4
    Press Ctrl+L to create a link. If you don't have text selected when you press Ctrl + L, you will be asked to create a link. If you have text selected, that text will be the link to your outside source.
    • There are tons more formatting options, but those are the only supported formats in comments.[2]
  5. Advertisement
Section 3 of 3:

What to Expect

  1. 1
    If you provide the best answer, it may be marked as "accepted." An accepted answer is indicated by the checkmark next to the answer.
    • An accepted answer is not a 100% guarantee to work for everyone else; it is merely an answer that worked for the original author of the question.
    • An accepted answer gets the answerer +15 reputation and the question author +2 reputation.
    • To answer your own question, you have to wait 48 hours after the question is posted and you will not earn any reputation bonuses.[3]
  2. 2
    Your reputation on the site fluctuates as you answer, edit, and ask questions. You can gain reputation in a multitude of ways, including having a question, answer, or article upvoted, or having an answer marked as "accepted." You can also, however, lose reputation easily including having a question, answer, or article downvoted or if your post receives more than 6 spam warnings or offensive flags.
    • In the case of a bad reputation, deleting may not help. Instead, you need to garner more positive reviews than negative ones.[4]
    • The higher your reputation, the more privileges you have! A user with a very high reputation score has something like a moderator's toolbox, like 25,000 gets you access to the site's analytics.
  3. Advertisement

Warnings

  • Stack Overflow is a question-and-answer site, not a discussion forum. If you have input on something another user has posted, or want to thank somebody, leave it as a comment instead of posting a new answer.
    ⧼thumbs_response⧽
Advertisement

About This Article

Darlene Antonelli, MA
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Darlene Antonelli, MA. Darlene Antonelli is a Technology Writer and Editor for wikiHow. Darlene has experience teaching college courses, writing technology-related articles, and working hands-on in the technology field. She earned an MA in Writing from Rowan University in 2012 and wrote her thesis on online communities and the personalities curated in such communities. This article has been viewed 44,766 times.
How helpful is this?
Co-authors: 11
Updated: June 27, 2022
Views: 44,766
Advertisement