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 the hardest programming language?

0 Answers  


how to introdu5ce my self in serco

0 Answers  


Print all the palindrome numbers.If a number is not palindrome make it one by attaching the reverse to it. eg:123 output:123321 (or) 12321

7 Answers   HCL,


Explain the difference between struct and union.

2 Answers  


I came across some code that puts a (void) cast before each call to printf. Why?

0 Answers  


Main must be written as a.the first function in the program b.Second function in the program c.Last function in the program d.any where in the program

19 Answers   CTS, HCL, TCS,


Explain the red-black trees?

0 Answers  


the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function

0 Answers  


What are the features of the c language?

0 Answers  


Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?

0 Answers   TCS,


f(*p) { p=(char *)malloc(6); p="hello"; return; } main() { char *p="bye"; f(p); printf("%s",p); } what is the o/p?

7 Answers   Hughes,


Why main is not a keyword in c?

0 Answers  


Categories