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

how tally is useful?

2 Answers  


what is run time error?

7 Answers  


How to create a program that lists the capital country when told what the original country is? (Terribly sorry, I'm a novice programmer and would appreciate any help ;). Cheers, Alexxis

0 Answers  


Given that two int variables, total and amount, have been declared, write a loop that reads integers into amount and adds all the non-negative values into total. The loop terminates when a value less than 0 is read into amount. Don't forget to initialize total to 0. Instructor's notes: This problem requires either a while or a do-while loop.

3 Answers  


#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }

12 Answers   HCL,


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

6 Answers   HCL,


how to convert decimal to binary in c using while loop without using array

50 Answers   Apple, Aptech, Arwen Tech, BCS, C2D Software, CEC,


What are the different types of errors in C and when they occur?

4 Answers  


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 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 ?

1 Answers  


loop1: { x=i<n?(i++):0; printf("%d",i); exit(x); continue; } Error- misplaced continue. Doubt-1.will the exit(x) be executed for all values of x 2.will this statement go out of the program.

5 Answers   CMC,


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  


Categories