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


what will be the output:
main(){char ch;int a=10;printf("%d",ch);}

Answers were Sorted based on User's Feedback



what will be the output: main(){char ch;int a=10;printf("%d",ch);}..

Answer / ranjani

it will give a warning " that a is assigned a value that is
never used"......

Is This Answer Correct ?    0 Yes 1 No

what will be the output: main(){char ch;int a=10;printf("%d",ch);}..

Answer / manju

The correct and verified answer is 8.

Is This Answer Correct ?    0 Yes 2 No

what will be the output: main(){char ch;int a=10;printf("%d",ch);}..

Answer / a.dinesh kumar

error will be occur because a is not in use in output
statement

Is This Answer Correct ?    2 Yes 6 No

what will be the output: main(){char ch;int a=10;printf("%d",ch);}..

Answer / siraj

0

Is This Answer Correct ?    1 Yes 8 No

what will be the output: main(){char ch;int a=10;printf("%d",ch);}..

Answer / reddy

ans ch=0
if we print a it wil be 10

Is This Answer Correct ?    2 Yes 11 No

what will be the output: main(){char ch;int a=10;printf("%d",ch);}..

Answer / ruth

it will print 64

Is This Answer Correct ?    0 Yes 13 No

Post New Answer

More C Interview Questions

What is macro?

5 Answers   IBM,


different between overloading and overriding

3 Answers  


How to avoid buffer overflow?

1 Answers  


Why do we use static in c?

0 Answers  


How can you be sure that a program follows the ANSI C standard?

0 Answers   Aspire, Infogain,


What are preprocessor directives in c?

0 Answers  


difference between loading and linking

1 Answers  


What is a void pointer? When is a void pointer used?

0 Answers   Aspire, Infogain,


What is an expression?

0 Answers  


what is the output of the program and explain why?? #include<stdio.h> void main ( ) { int k=4,j=0: switch (k) { case 3; j=300; case 4: j=400: case 5: j=500; } printf (ā€œ%d\nā€,j); }

14 Answers   Oracle,


#define FALSE -1 #define TRUE 1 #define NULL 0 main() { if(NULL) puts("NULL"); else if(FALSE) puts("TRUE"); else puts("FALSE"); }

1 Answers  


Why c is called a mid level programming language?

0 Answers  


Categories