#include"stdio.h"
#include"conio.h"
void main()
{
int a;
printf("\n enter a number:");
scanf("%c\n");
getch();
}
Answers were Sorted based on User's Feedback
Answer / janava
In this a variable is a integer but read the int as char so
it shows error.
this can be written as
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
printf("\n Enter a number");
scanf("%d",&a);
getch();
}
Is This Answer Correct ? | 48 Yes | 13 No |
Answer / lalithpriya
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
clrscr();
printf("Enter a number:");
scanf("%d",&a);
printf("The entered number is %d",a);
getch();
}
Is This Answer Correct ? | 13 Yes | 5 No |
Answer / r.kumar bsc
getting a value is defined %d that is scanf("%d\n");
this formatted is correct that %c is defined only is
getting the characters.
Is This Answer Correct ? | 20 Yes | 14 No |
Answer / aarti
#include<stdio.h>
#include<conio.h>
void main
{
clrscr();
int number;
printf("\n enter a number:");
scanf("%d",&number);
getch();
}
Is This Answer Correct ? | 9 Yes | 7 No |
Here in the scanf("%c\n");
it is just take a input. and, it will store that input
value anywhere.
it would be just garbage value. ok.........
nothing is output.
say, null pointer assignment.........
Is This Answer Correct ? | 3 Yes | 3 No |
Answer / gaurav tyagi
there is a error in program because ""is use in headerfile
due to this compiler is search the conio.h&stdio.h file in current directory
note:<>is use to tell compiler find these file in system area
Is This Answer Correct ? | 2 Yes | 2 No |
Answer / aarti
#include<stdio.h>
#include<conio.h>
void main()
{
int number;
clrscr();
printf("\n enter a number:");
scanf("%d",&number);
getch();
}
Is This Answer Correct ? | 4 Yes | 4 No |
Answer / mohit
#include {studio h}
#include{conio h}
[void main]
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sansiri
it access the value but it doesnot assign for any variable
Is This Answer Correct ? | 1 Yes | 2 No |
Answer / lodu
#INCLUDE<STDIO.H>
#INCLUDE<CONIO.H>
{
VOID MAIN()
{
INT X,Y,Z;
Is This Answer Correct ? | 0 Yes | 1 No |
Write a c-programe that input one number of four digits and find digits sum?
what is macro in c? Difference between single linked list & double linked list what is fifo & lifo? what is stack & queue?
how tally is useful?
write a profram for selection sort whats the error in it?
when i use cout or cin call & then either << or >> .....it shows declaration syntax error...what should i do? cout<<"anything"; int a; cin>>a; return 0;
Write a program to accept two strings of Odd lengths. Then take all odd characters from one string and even characters from the other and concatenate and produce a string.
#include<stdio.h> void main() { int i=1; printf("%d%d%d",i++,++i,i); }
#include<>stdio.h> #include<>conio.h> { printf("hello"); void main() getch(); } what the out put of this program and why ......plz clear my answer
What is probability to guarantee that the task a programmer is going to create will be created and be able to run on a particular system (RTOS/GPOS).
void main() { for(int i=0;i<5;i++); printf("%d",i); } What is the output?..
32 Answers College School Exams Tests, CTS, HCL, iGate, SmartData,
How to upgrade LOOP environment, I just mean, how can i make loop statement editable ? I just try some program using loop statement and checking it in multiple compilers. Every compiler showing different output, what's the wrong ? is it a compiler based problem, or loop based problem, tell me why ? and what will be the debugging process, for this kind of problem ?
Answering Yes or No in C++...using only stdio.h and conio.h..........help me please...? here's must be the output of the program: Screen A Exam No. items Score 1 20 20 2 35 35 Another Entry? [Y] or [N] : Screen B: Record No. Student's Name: 1 Fernando Torres 2 Chuck Norris Note: if you press Y, the program must repeat the procedure in screen A, then if N, the program must proceed to the screen B....Please Help me out............