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

class test { int a; public: test(int b):a(b){} void show(){ cout<<a; } }; void main() { test t1; test t2(5); t1.show(); t2.show(); } }

1 Answers  


Given an int variable n that has already been declared and initialized to a positive value, and another int variable j that has already been declared, use a do...while loop to print a single line consisting of n asterisks. Thus if n contains 5, five asterisks will be printed. Use no variables other than n and j .

2 Answers  


I'm having trouble with coming up with the correct code. Thank You!! The assignment was to write a program using string functions that accepts a price of an item and displays its coded value. The base of the keys: X C O M P U T E R S 0 1 2 3 4 5 6 7 8 9 Sample I/O Dialogue: Enter Price: 489.50 Coded Value: PRS.UX

0 Answers  


char* f() return "hello:"; void main() {char *str=f(); }

1 Answers  


UINT i,j; i = j = 0; i = ( i++ > ++j ) ? i++ : i--; explain pls....

5 Answers  


void main() { int i=5; printf("%d",i+++++i); }

14 Answers   HCL,


what is the error in the following code: main() { int i=400,j; j=(i*i)/i; }

4 Answers  


what is macro in c? Difference between single linked list & double linked list what is fifo & lifo? what is stack & queue?

2 Answers   TCS,


To generate the series 1+3+5+7+... using C program

18 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  


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  


which typw of errors ? & how to solve it ?

0 Answers  


Categories