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);}

Answer Posted / reddy

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

Is This Answer Correct ?    2 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain indirection?

1177


What is volatile variable in c?

1152


How can I avoid the abort, retry, fail messages?

1183


Are there any problems with performing mathematical operations on different variable types?

1100


How do I get an accurate error status return from system on ms-dos?

1175


#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }

1208


Can you please explain the difference between exit() and _exit() function?

1080


What is volatile variable how do you declare it?

1182


Explain how can a program be made to print the line number where an error occurs?

1282


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

1136


How do I copy files?

1104


How can I convert a number to a string?

1246


In which header file is the null macro defined?

1400


Explain what math functions are available for integers? For floating point?

1159


Is there a built-in function in C that can be used for sorting data?

1338