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 / lnk

In the above coding ...
there is a char "ch " assigned with out a value
and a int" a " assigned with a value ...
and it compiles to print a interger (%d) ...
but tries to read a int value fronm ch (which does not
match the data type ) so it gives garbage value .with
compile time warning !

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of a semicolon (;) at the end of every program statement?

1495


what is a constant pointer in C

1158


What is function what are the types of function?

995


what is the significance of static storage class specifier?

2254


Tell me what is the purpose of 'register' keyword in c language?

1008


What is memory leak in c?

1127


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

5950


Explain how can you restore a redirected standard stream?

1097


write a c program to calculate sum of digits till it reduces to a single digit using recursion

3309


What is const keyword in c?

1161


Create a simple code fragment that will swap the values of two variables num1 and num2.

1285


Can you add pointers together? Why would you?

1124


The __________ attribute is used to announce variables based on definitions of columns in a table?

1204


Is c compiled or interpreted?

1192


Is c still used?

1047