I went to bed tonight tired and content with the work I had done tonight. Just then I thought of something. I got up and immediately opened TC to write these 12 lines of code. Tell me if this makes any sense to you.
#include <stdio.h>
#include <conio.h>
void main()
{
int a = 0;
clrscr();
fprintf(stdin,"1");
scanf("%d",&a);
printf("\nValue of a = %d",a);
getch();
}
First question is, what am I trying to do? That will give you the title of the thread, which I've removed. Second question is what's wrong? Why don't I get the expected output. It should be possible to do. Pointless, may it be mostly, but possible none the less.
CodeStorm sounds like Brain Storming, doesn't it? That's what this is meant to be
