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

plz answer....A program that takes 3 variables e.g a,b,c in as seperate parameters and rotates the values stored so that value goes a to b, b to c and c to a .

3 Answers  


What is the difference between int main and void main in c?

0 Answers  


what's the o/p int main(int n, char *argv[]) { char *s= *++argv; puts(s); exit(0); }

1 Answers   Motorola,


how to add two numbers without using arithmetic operators?

4 Answers  


Do you know what is the purpose of 'extern' keyword in a function declaration?

0 Answers  


Explain how can you be sure that a program follows the ansi c standard?

0 Answers  


What is the difference between printf and scanf in c?

0 Answers  


What is the memory allocated by the following definition ? int (*x)[10];

4 Answers   ADITI, Wipro,


Is there a way to compare two structure variables?

0 Answers  


Find if a number is power of two or not?

1 Answers  


Program to write some contents into a file using file operations with proper error messages.

2 Answers  


What is p in text message?

0 Answers  


Categories