Search



Saturday, 7 February 2015

Input

In this program, # is a preprocessor directive ,  whereas #include is used to extract the 
functions already created in files (eg:- conio.h contains getch() function). int x statement
declares variable named as x.
Line printf prints the whole statement written inside it. scanf() statement is used to take 
input from user 7 store it in x (variable to store value).
getch() is used for input of any character. 
For more information & explanation of this program click here.. 


Program to input numbers.

#include<stdio.h>
#include<conio.h>
void main()
{
      int x;
      printf("Enter any no.");
      scanf("%d",x);
      getch();
}





No comments:

Post a Comment

Guys if you think something is wrong or should be edit than please do comment.