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

will the program compile? int i; scanf(ā€œ%dā€,i); printf(ā€œ%dā€,i);

Answer Posted / vignesh1988i

surely it will compile and run , no problem will be in
it.... but the problem lies in ur scanf statement , there
what ever u have typed as an input number , that number
wont be stored in 'i' since you have left ur '&'(reference
operator) , so ur compiler dosen't know where to store ur
input value....... so it will print some garbage value in
the printf().........


thank u

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.

1063


Why static is used in c?

1091


Tell me when is a void pointer used?

1176


What is string in c language?

1150


Explain what header files do I need in order to define the standard library functions I use?

1170


Which function in C can be used to append a string to another string?

1217


Is null a keyword in c?

1194


Why isn't any of this standardized in c? Any real program has to do some of these things.

1201


Why is c faster?

1100


Can static variables be declared in a header file?

1060


why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

1764


Explain what is the stack?

1097


What are the features of the c language?

1083


What does #pragma once mean?

1162


Explain how do you search data in a data file using random access method?

1132