Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


#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



#include"stdio.h" #include"conio.h" void main() { int a; printf("\n en..

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

#include"stdio.h" #include"conio.h" void main() { int a; printf("\n en..

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

#include"stdio.h" #include"conio.h" void main() { int a; printf("\n en..

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

#include"stdio.h" #include"conio.h" void main() { int a; printf("\n en..

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

#include"stdio.h" #include"conio.h" void main() { int a; printf("\n en..

Answer / pawanjha12

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 ?    4 Yes 3 No

#include"stdio.h" #include"conio.h" void main() { int a; printf("\n en..

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

#include"stdio.h" #include"conio.h" void main() { int a; printf("\n en..

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

#include"stdio.h" #include"conio.h" void main() { int a; printf("\n en..

Answer / mohit

#include {studio h}
#include{conio h}
[void main]

Is This Answer Correct ?    0 Yes 0 No

#include"stdio.h" #include"conio.h" void main() { int a; printf("\n en..

Answer / sansiri

it access the value but it doesnot assign for any variable

Is This Answer Correct ?    1 Yes 2 No

#include"stdio.h" #include"conio.h" void main() { int a; printf("\n en..

Answer / lodu

#INCLUDE<STDIO.H>
#INCLUDE<CONIO.H>
{
VOID MAIN()
{
INT X,Y,Z;

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C C++ Errors Interview Questions

full c programming error question based problem

3 Answers   HCL, TCS,


difference between c/c++ programing language? what is necessesity of c++ when existing c programing language?

2 Answers   TCS,


what is exceptions?

5 Answers   HCL, Wipro,


void main() { int i=7; printf("N= %*d",i,i); }

6 Answers   HCL,


WHAT WILL BE THE OUTPUT OF THE FOLLOWING QUESTION void main() { int x=4,y=3,z; z=x-- -y; printf("%d%d%d",x,y,z); }

25 Answers   HCL,


how tally is useful?

2 Answers  


How to create a program that lists countries capitals when country is entered? (Terribly sorry, I'm a complete novist to coding with C, am looking for inspiration and general tips on how to code and create this program.)

0 Answers  


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).

0 Answers  


Write a C program to enter 10 integer numbers through one variable and count how many of them are even using while loop ?

2 Answers  


How to convert hexadecimal to binary using c language..

1 Answers   Bajaj, GAIL, Satyam, Zenqa,


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

3 Answers   UCB,


what are the techniques for reducing the fragility of a memory bug?

1 Answers  


Categories