<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'scanf_s is not doing anything when I use Visual Studio 2012' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'scanf_s is not doing anything when I use Visual Studio 2012' posted on the 'C and C++' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 14:47:41 -0700</pubDate>
    <lastBuildDate>Sat, 25 May 2013 14:47:41 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>scanf_s is not doing anything when I use Visual Studio 2012</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/430003/430003/scanf_s-is-not-doing-anything-when-i-use-visual-studio-2012/</link>
      <description>Hi ,, Need your help on this ..I am new to the C programing and wants to learn it and I am doing it on my own ..&lt;br /&gt;
&lt;br /&gt;
#include "stdafx.h"&lt;br /&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
	int x;&lt;br /&gt;
	printf("Enter any number\n");&lt;br /&gt;
	scanf_s("%d\n", &amp;amp;x);&lt;br /&gt;
	&lt;br /&gt;
	printf("your number is %d\n", x);&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
	return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This gets compiled without any error but when I executes it .,.&lt;br /&gt;
&lt;br /&gt;
printf works file asking Enter the number&lt;br /&gt;
and when I enter suppose 8 .. then I don't get anything , simply blank and cursor keeps jumping on next tile with  hot enter ..&lt;br /&gt;
&lt;br /&gt;
Can anyone help ?  I know this will be silly .. but I am stuck&lt;br /&gt;
&lt;br /&gt;
thanks&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/430003/430003/scanf_s-is-not-doing-anything-when-i-use-visual-studio-2012/</guid>
      <pubDate>Tue, 30 Oct 2012 11:48:55 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: scanf_s is not doing anything when I use Visual Studio 2012</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/430003/430052/re-scanf_s-is-not-doing-anything-when-i-use-visual-studio-2012/#430052</link>
      <description>finally I got it &lt;br /&gt;
&lt;br /&gt;
I should not be using \n in scanf statement&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/430003/430052/re-scanf_s-is-not-doing-anything-when-i-use-visual-studio-2012/#430052</guid>
      <pubDate>Thu, 01 Nov 2012 15:40:31 -0700</pubDate>
      <category>C and C++</category>
    </item>
  </channel>
</rss>