#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 |
what is macro in c? Difference between single linked list & double linked list what is fifo & lifo? what is stack & queue?
To generate the series 1+3+5+7+... using C program
Why are memory errors hard to debug?
what is run time error?
Given that two int variables, total and amount , have been declared, write a sequence of statements that: initializes total to 0 reads three values into amount , one at a time. After each value is read in to amount , it is added to the value in total (that is, total is incremented by the value in amount ). Instructor's notes: If you use a loop, it must be a for loop. And if you use a loop control variable for counting, you must declare it.
I'm having trouble with coming up with the correct code. Do I need to put a loop? Please let me know if I'm on the right track and what areas I need to correct. I still don't have a good grasp on this programming stuff. Thanks =) The assignment was to write a program using string functions that accepts a coded value of an item and displays its equivalent tag price. The base of the keys: 0 1 2 3 4 5 6 7 8 9 X C O M P U T E R S Sample I/O Dialogue: Enter coded value: TR.XX Tag Price : 68.00
quoroum of computer languages?
what is exceptions?
full c programming error question based problem
how to convert decimal to binary in c using while loop without using array
50 Answers Apple, Aptech, Arwen Tech, BCS, C2D Software, CEC,
write a profram for selection sort whats the error in it?
void main() { int i=7; printf("N= %*d",i,i); }